2022-05-27 15:44:55 +02:00
= render partial: 'administrateurs/breadcrumbs',
2022-12-08 17:28:48 +01:00
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
2023-10-30 15:02:26 +01:00
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],[t('administrateurs.procedures.close.page_title')]],
2022-08-17 13:53:07 +02:00
metadatas: true }
2022-05-27 15:44:55 +02:00
2023-10-30 15:02:26 +01:00
.fr-container
.fr-grid-row
.fr-col-12.fr-col-offset-md-2.fr-col-md-8
%h1= t('administrateurs.procedures.close.page_title')
%p= t('administrateurs.procedures.close.replacement_procedure_title')
2023-11-06 11:22:09 +01:00
= form_tag admin_procedure_archive_path(@procedure), method: :put do
2023-10-30 15:02:26 +01:00
- if @published_procedures.present?
.fr-select-group
= label_tag :new_procedure, class: 'fr-label' do
= t('activerecord.attributes.procedure.new_procedure')
= t('utils.no_mandatory')
= select_tag :new_procedure, options_for_select(@published_procedures), include_blank: true, class: 'fr-select'
= submit_tag t('administrateurs.procedures.close.actions.close_procedure'), { class: "fr-btn", 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..."} }