page administrateurs
This commit is contained in:
parent
1fe59c165f
commit
18585ce422
1 changed files with 11 additions and 4 deletions
|
@ -4,10 +4,14 @@
|
||||||
['Administrateurs']], preview: false }
|
['Administrateurs']], preview: false }
|
||||||
|
|
||||||
.fr-container
|
.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
|
%table
|
||||||
|
%caption Liste des administrateurs
|
||||||
%thead
|
%thead
|
||||||
%th= 'Adresse email'
|
%th= 'Adresse email'
|
||||||
%th= 'Enregistré le'
|
%th= 'Enregistré le'
|
||||||
|
@ -16,5 +20,8 @@
|
||||||
%tbody#administrateurs
|
%tbody#administrateurs
|
||||||
= render(Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure))
|
= render(Procedure::ProcedureAdministrateurs::AdministrateurComponent.with_collection(@procedure.administrateurs.order('users.email'), procedure: @procedure))
|
||||||
|
|
||||||
.fr-mt-4w
|
.padded-fixed-footer
|
||||||
= render 'add_admin_form', procedure: @procedure, disabled_as_super_admin: administrateur_as_manager?
|
.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
|
||||||
|
|
Loading…
Reference in a new issue