demarches-normaliennes/app/views/administrateurs/procedures/close.html.haml

14 lines
1,011 B
Text
Raw Normal View History

2022-05-27 15:44:55 +02:00
= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
["#{@procedure.libelle.truncate_words(10)} - archiver"]],
metadatas: true }
2022-05-27 15:44:55 +02:00
.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..."} }