demarches-normaliennes/app/views/administrateurs/procedure_administrateurs/index.html.haml

19 lines
763 B
Text

= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path],
[@procedure.libelle.truncate_words(4), admin_procedure_path(@procedure)],
['Administrateurs']], preview: false }
.container
%h1 Gérer les administrateurs de « #{@procedure.libelle} »
%table.table
%thead
%th= 'Adresse email'
%th= 'Enregistré le'
%th= 'État'
%tbody#administrateurs
= render partial: 'administrateur', collection: @procedure.administrateurs.order('users.email'), locals: { procedure: @procedure }
%tfoot
%tr
%th{ colspan: 4 }
= render 'add_admin_form', procedure: @procedure, disabled_as_super_admin: administrateur_as_manager?