layout
This commit is contained in:
parent
37272f90a0
commit
1c271fef83
2 changed files with 14 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
|
||||
- if procedure.publiee?
|
||||
%li
|
||||
= link_to admin_procedure_archive_path(procedure_id: procedure.id), method: :put, data: { confirm: "Voulez-vous vraiment clore la démarche ? \nLes dossiers en cours pourront être instruits, mais aucun nouveau dossier ne pourra plus être déposé.", disable_with: "Archivage..."} do
|
||||
= link_to admin_procedure_close_path(procedure_id: procedure.id) do
|
||||
%span.icon.archive
|
||||
.dropdown-description
|
||||
%h4= t('administrateurs.dropdown_actions.to_close')
|
||||
|
|
13
app/views/administrateurs/procedures/close.html.haml
Normal file
13
app/views/administrateurs/procedures/close.html.haml
Normal file
|
@ -0,0 +1,13 @@
|
|||
= render partial: 'administrateurs/breadcrumbs',
|
||||
locals: { steps: [link_to('Démarches', admin_procedures_path),
|
||||
"#{@procedure.libelle}", 'archiver'],
|
||||
metadatas: ["Créée le #{@procedure.created_at.strftime('%d/%m/%Y')} - n° #{@procedure.id}", "#{@procedure.close? ? "Close le #{@procedure.closed_at.strftime('%d/%m/%Y')}" : @procedure.locked? ? "Publiée - #{procedure_lien(@procedure)}" : "Brouillon"}"] }
|
||||
|
||||
.container
|
||||
.card
|
||||
%h2.card-title
|
||||
= t('administrateurs.procedures.close.replacement_procedure_title')
|
||||
= form_tag admin_procedure_archive_path(@procedure), method: :put, class: "form" do
|
||||
- options_from_collection_for_select = current_administrateur.procedures.publiees.map { |p| ["#{p.libelle} (#{p.id})", p.id] }.to_h
|
||||
= select_tag :new_procedure, options_for_select(options_from_collection_for_select), include_blank: true
|
||||
= submit_tag t('administrateurs.procedures.close.actions.close_procedure'), { class: "button primary", id: 'publish', data: { confirm: "Voulez-vous vraiment clore la démarche ? \nLes dossiers en cours pourront être instruits, mais aucun nouveau dossier ne pourra plus être déposé.", disable_with: "Archivage..."} }
|
Loading…
Reference in a new issue