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

20 lines
792 B
Text
Raw Normal View History

= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path],
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
['Administrateurs']], preview: false }
2019-04-12 10:43:51 +02:00
.container
%h1 Gérer les administrateurs de « #{@procedure.libelle} »
2019-04-12 10:43:51 +02:00
%table.table
%thead
%th= 'Adresse email'
%th= 'Enregistré le'
%th= 'État'
%tbody#administrateurs
= render(Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure))
2019-04-12 10:43:51 +02:00
%tfoot
%tr
%th{ colspan: 4 }
2022-07-28 15:12:24 +02:00
= render 'add_admin_form', procedure: @procedure, disabled_as_super_admin: administrateur_as_manager?