2023-07-17 16:27:59 +02:00
|
|
|
= form_for procedure,
|
|
|
|
url: admin_procedure_publish_path(procedure_id: procedure.id),
|
|
|
|
method: :put,
|
|
|
|
html: { class: 'form' } do |f|
|
2024-06-03 07:44:27 +02:00
|
|
|
= render Procedure::ErrorsSummary.new(procedure: @procedure, validation_context: :publication)
|
2023-07-17 10:41:38 +02:00
|
|
|
.mt-2
|
|
|
|
- if procedure.draft_changed?
|
2023-07-17 16:27:59 +02:00
|
|
|
%p.mb-2= t('.draft_changed_procedure_alert')
|
2023-07-17 10:41:38 +02:00
|
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
2024-01-08 11:22:38 +01:00
|
|
|
- c.with_body do
|
2023-07-17 10:41:38 +02:00
|
|
|
= render Procedure::RevisionChangesComponent.new changes: procedure.revision_changes, previous_revision: procedure.published_revision
|
|
|
|
- if procedure.close?
|
2023-07-17 16:27:59 +02:00
|
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures, form: f }
|
2023-07-17 10:41:38 +02:00
|
|
|
- elsif @procedure.brouillon? && @procedure.missing_steps.empty?
|
2023-07-20 15:23:38 +02:00
|
|
|
= render Dsfr::AlertComponent.new(state: :info, size: :sm, extra_class_names: 'fr-mb-2w') do |c|
|
2024-01-08 11:22:38 +01:00
|
|
|
- c.with_body do
|
2023-07-20 15:23:38 +02:00
|
|
|
%p
|
|
|
|
= t('.faq_test_alert')
|
2024-04-24 15:50:42 +02:00
|
|
|
= link_to t('.faq_test_alert_link'), t('.faq_test_alert_link_url')
|
2023-07-17 16:27:59 +02:00
|
|
|
= 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|
|
2023-07-17 10:41:38 +02:00
|
|
|
- c.with_body do
|
|
|
|
%p.fr-mb-2w
|
2023-07-17 16:27:59 +02:00
|
|
|
= t('.dpd_part_1')
|
2023-07-17 10:41:38 +02:00
|
|
|
%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
|
2020-09-08 12:35:44 +02:00
|
|
|
|
2023-07-17 10:41:38 +02:00
|
|
|
%p.fr-mb-2w
|
2023-07-17 16:27:59 +02:00
|
|
|
= t('.dpd_part_2')
|
2023-07-17 10:41:38 +02:00
|
|
|
|
|
|
|
%p.fr-mb-2w
|
2023-07-17 16:27:59 +02:00
|
|
|
= t('.dpd_part_3')
|
2023-07-17 10:41:38 +02:00
|
|
|
%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
|
2023-07-17 16:27:59 +02:00
|
|
|
= t('.dpd_part_4')
|
2023-07-17 10:41:38 +02:00
|
|
|
|
|
|
|
- else
|
2023-07-17 16:27:59 +02:00
|
|
|
= render partial: 'publication_form_inputs', locals: { procedure: procedure, closed_procedures: @closed_procedures, form: f }
|
2023-07-17 10:41:38 +02:00
|
|
|
|
2023-07-19 15:51:11 +02:00
|
|
|
%ul.fr-btns-group.fr-btns-group--inline-md.fr-btns-group--icon-left
|
2023-07-17 16:27:59 +02:00
|
|
|
= 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'
|