demarches-normaliennes/app/views/new_administrateur/procedure_administrateurs/index.html.haml
Nicolas Bouilleaud 3ff0c83485 Add multi-admin UI
refs #1626
2019-05-06 16:19:08 +02:00

26 lines
1.2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

= render partial: 'new_administrateur/breadcrumbs',
locals: { steps: [link_to('Démarches', admin_procedures_path),
link_to(@procedure.libelle, admin_procedure_path(@procedure)),
'Administrateurs'], preview: false }
.container
%h1 Administrateurs de « #{@procedure.libelle} »
%table.table
%thead
%th= 'Adresse email'
%th= 'Enregistré le'
%th= 'État'
%tbody{ id: "procedure-#{@procedure.id}-administrateurs" }
= render partial: 'administrateur', collection: @procedure.administrateurs.order(:email)
%tfoot
%tr
%th{ colspan: 4 }
= form_for @procedure.administrateurs.new,
url: { controller: 'procedure_administrateurs' },
html: { class: 'form', id: "procedure-#{@procedure.id}-new_administrateur" } ,
remote: true do |f|
= f.label :email do
Ajouter un administrateur
%span.notice= "Renseigner lemail dun administrateur déjà enregistré sur demarches-simplifiees.fr pour lui permettre de modifier « #{@procedure.libelle} »."
= f.email_field :email, placeholder: 'marie.dupont@exemple.fr', required: true
= f.submit 'Ajouter', class: 'button send'