2021-11-25 15:26:55 +00:00
= render partial: 'administrateurs/breadcrumbs',
2022-08-17 13:53:07 +02:00
locals: { steps: [['Démarches', admin_procedures_path],
2022-09-09 13:08:24 +02:00
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
2022-08-17 13:53:07 +02:00
['Groupes d’ instructeurs', admin_procedure_groupe_instructeurs_path(@procedure)],
[@groupe_instructeur.label]] }
2020-01-07 17:39:50 +01:00
2024-11-14 14:56:34 +01:00
.fr-container
%h1.fr-h2 Réaffectation des dossiers du groupe « #{@groupe_instructeur.label} »
%p
Le groupe « #{@groupe_instructeur.label} » contient des dossiers. Afin de procéder à sa suppression, vous devez réaffecter ses dossiers à un autre groupe d’ instructeurs.
2020-01-07 17:39:50 +01:00
2024-11-14 14:56:34 +01:00
.fr-table
.fr-table__wrapper
.fr-table__container
.fr-table__content
%table
%caption
= t(".existing_groupe", count: @groupes_instructeurs.total_count)
%thead
%tr
%th{ scope: 'col' } Groupe
%th{ scope: 'col' } Réaffectation
%tbody
- @groupes_instructeurs.each do |group|
%tr
%td= group.label
%td
= button_to 'Réaffecter les dossiers à ce groupe',
reaffecter_admin_procedure_groupe_instructeur_path(:target_group => group),
{ class: 'fr-btn fr-btn--secondary fr-btn--sm',
data: { confirm: "Êtes-vous sûr de vouloir réaffecter les dossiers du groupe « #{@groupe_instructeur.label} » vers le groupe « #{group.label} » ?" } }
2020-01-07 17:39:50 +01:00
2024-11-14 14:56:34 +01:00
.fr-table__footer
.fr-table__footer--start
%p.fr-table__detail
.fr-table__footer--middle
= paginate @groupes_instructeurs, views_prefix: 'shared'