page administrateurs

This commit is contained in:
Lisa Durand 2024-05-22 16:16:45 +02:00
parent 1fe59c165f
commit 18585ce422

View file

@ -4,10 +4,14 @@
['Administrateurs']], preview: false }
.fr-container
%h1 Gérer les administrateurs de « #{@procedure.libelle} »
%h1.fr-h2 Administrateurs
.fr-table.fr-table--bordered
.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
%caption Liste des administrateurs
%thead
%th= 'Adresse email'
%th= 'Enregistré le'
@ -16,5 +20,8 @@
%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?
.padded-fixed-footer
.fixed-footer.fr-pb-2w
.fr-container
= link_to admin_procedure_path(id: @procedure), class: 'fr-link fr-icon-arrow-left-line fr-link--icon-left' do
Revenir à l'écran de gestion