2020-09-08 12:35:44 +02:00
|
|
|
|
.card.mb-4
|
|
|
|
|
%h2.card-title Publiez votre démarche
|
|
|
|
|
= form_tag admin_procedure_publish_path(procedure_id: procedure.id), method: :put, class: 'form' do
|
2022-11-07 13:45:10 +01:00
|
|
|
|
= render Procedure::PublicationWarningComponent.new(procedure: procedure)
|
|
|
|
|
.mt-2
|
|
|
|
|
- if procedure.draft_changed?
|
2023-06-07 21:52:31 +02:00
|
|
|
|
%p.mb-2 Publiez une nouvelle version de votre démarche. Les modifications suivantes seront appliquées :
|
2022-12-23 14:05:39 +01:00
|
|
|
|
= render Procedure::RevisionChangesComponent.new changes: procedure.revision_changes, previous_revision: procedure.published_revision
|
2022-11-07 13:45:10 +01:00
|
|
|
|
- if procedure.close?
|
|
|
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures }
|
2022-10-19 09:28:23 +02:00
|
|
|
|
- else
|
2022-11-07 13:45:10 +01:00
|
|
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures }
|
2020-09-08 12:35:44 +02:00
|
|
|
|
|
|
|
|
|
.flex.justify-end
|
2022-11-07 13:45:10 +01:00
|
|
|
|
= submit_tag procedure_publish_label(procedure, :submit), { disabled: procedure.errors.present?, class: "fr-btn fr-btn--primary", id: 'publish' }
|