14 lines
1.2 KiB
Text
14 lines
1.2 KiB
Text
|
= 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..."} }
|