demarches-normaliennes/app/views/administrateurs/procedure_administrateurs/index.html.haml
2023-12-04 14:07:33 +01:00

20 lines
820 B
Text

= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path],
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
['Administrateurs']], preview: false }
.fr-container
%h1 Gérer les administrateurs de « #{@procedure.libelle} »
.fr-table.fr-table--bordered
%table
%thead
%th= 'Adresse email'
%th= 'Enregistré le'
%th= 'État'
%th= 'Action'
%tbody#administrateurs
= render(Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure))
.fr-mt-4w
= render 'add_admin_form', procedure: @procedure, disabled_as_super_admin: administrateur_as_manager?