39 lines
2 KiB
Text
39 lines
2 KiB
Text
= form_for procedure,
|
|
url: admin_procedure_publish_path(procedure_id: procedure.id),
|
|
method: :put,
|
|
html: { class: 'form' } do |f|
|
|
= render Procedure::PublicationWarningComponent.new(procedure: procedure)
|
|
.mt-2
|
|
- if procedure.draft_changed?
|
|
%p.mb-2= t('.draft_changed_procedure_alert')
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
|
- c.body do
|
|
= render Procedure::RevisionChangesComponent.new changes: procedure.revision_changes, previous_revision: procedure.published_revision
|
|
- if procedure.close?
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures, form: f }
|
|
- elsif @procedure.brouillon? && @procedure.missing_steps.empty?
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures, form: f }
|
|
= render Dsfr::CalloutComponent.new(title: t('.dpd_title'), heading_level: 'h2') do |c|
|
|
- c.with_body do
|
|
%p.fr-mb-2w
|
|
= t('.dpd_part_1')
|
|
%a{ href:'https://www.cnil.fr/fr/protection-des-donnees-les-bons-reflexes', target:'_blank' }
|
|
https://www.cnil.fr/fr/protection-des-donnees-les-bons-reflexes
|
|
|
|
%p.fr-mb-2w
|
|
= t('.dpd_part_2')
|
|
|
|
%p.fr-mb-2w
|
|
= t('.dpd_part_3')
|
|
%a{ href:'https://www.cnil.fr/fr/RGDP-le-registre-des-activites-de-traitement', target:'_blank' }
|
|
https://www.cnil.fr/fr/RGDP-le-registre-des-activites-de-traitement
|
|
|
|
%p.fr-mb-2w
|
|
= t('.dpd_part_4')
|
|
|
|
- else
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures, form: f }
|
|
|
|
.flex.fr-mb-5w
|
|
= f.submit t('.submit'), { disabled: procedure.errors.present?, class: "fr-btn fr-btn--primary", id: 'publish' }
|
|
= link_to t('.back_to_procedure'), admin_procedure_path(id: @procedure), class: 'fr-btn fr-btn--secondary fr-btn--icon-left fr-icon-arrow-go-back-line fr-ml-1w'
|