b0a9e49549
As procedures are not grouped by Service (which are unique to an administrator) but by organization, this allows procedures with the same organization name to be displayed together.
26 lines
1.2 KiB
Text
26 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_name
|
|
%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;' }
|
|
= 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}")
|