demarches-normaliennes/app/views/admin/procedures/new_from_existing.html.haml

27 lines
1.2 KiB
Text

.row.white-back
%a#from-scratch{ href: new_admin_procedure_path, class: 'btn-sm btn-primary' }
Créer une nouvelle procédure de zéro
.row.white-back
%h2
Créer une nouvelle procédure à partir d'une procédure existante
.section.section-label
Pour rechercher dans cette liste, utilisez la fonction "Recherche" de votre navigateur (CTRL+F ou command+F)
%br
%br
- @grouped_procedures.each do |_, procedures|
%b
= procedures.first.organisation
%table{ style: 'margin-bottom: 40px;' }
- procedures.sort_by(&:id).each do |procedure|
%tr{ style: 'height: 36px;' }
%td{ style: 'width: 750px;' }
= procedure.libelle
%td{ style: 'padding-right: 10px; padding-left: 10px; width: 60px;' }
- if !procedure.archivee?
= link_to('Consulter', apercu_procedure_path(id: procedure.id), target: "_blank")
%td
= link_to('Cloner', admin_procedure_clone_path(procedure.id, from_new_from_existing: true), 'data-method' => :put, class: 'btn-sm btn-primary clone-btn')
%td{ style: 'padding-left: 10px;' }
= link_to('Contacter', "mailto:#{procedure.administrateur.email}")