- content_for(:title, "Instructeurs du groupe #{@groupe_instructeur.label}") = render partial: 'new_administrateur/breadcrumbs', locals: { steps: [link_to(@procedure.libelle, procedure_path(@procedure)), link_to('Groupes d’instructeurs', instructeur_groupes_path(@procedure)), @groupe_instructeur.label] } .container.groupe-instructeur %h1 Groupe « #{@groupe_instructeur.label} » .card.mt-2 .card-title Gestion des instructeurs = form_for :instructeur, url: { action: :add_instructeur }, html: { class: 'form' } do |f| = f.label :email do Affecter un nouvel instructeur = f.email_field :email, placeholder: 'marie.dupont@exemple.fr', required: true = f.submit 'Affecter', class: 'button primary send' %table.table.mt-2 %thead %tr %th{ colspan: 2 } Instructeurs affectés %tbody - @instructeurs.each do |instructeur| %tr %td= instructeur.email %td.actions= button_to 'retirer', { action: :remove_instructeur }, { method: :delete, data: { confirm: "Êtes-vous sûr de vouloir retirer l’instructeur « #{instructeur.email} » du groupe  « #{@groupe_instructeur.label} » ?" }, params: { instructeur: { id: instructeur.id }}, class: 'button' } = paginate @instructeurs