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

24 lines
911 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
.fr-container
2024-05-22 16:16:45 +02:00
%h1.fr-h2 Administrateurs
2024-05-22 16:16:45 +02:00
.fr-mb-4w
= render 'add_admin_form', procedure: @procedure, disabled_as_super_admin: administrateur_as_manager?
.fr-table.fr-table--bordered.fr-table--layout-fixed
%table
2024-05-22 16:16:45 +02:00
%caption Liste des administrateurs
%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))
2024-05-27 17:56:05 +02:00
= render Procedure::FixedFooterComponent.new(procedure: @procedure)