2024-08-21 00:21:47 +00:00
|
|
|
|
|
|
|
|
|
- if @procedure.draft_changed?
|
|
|
|
|
- content_for(:sticky_header) do
|
2024-08-21 17:28:11 +02:00
|
|
|
|
= render partial: 'administrateurs/procedures/unpublished_changes_sticky_header', locals: { procedure: @procedure }
|
2021-11-25 15:26:55 +00:00
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-12-08 17:28:48 +01:00
|
|
|
|
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
|
2022-09-09 13:08:24 +02:00
|
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2024-05-22 15:09:37 +02:00
|
|
|
|
['Champs du formulaire']], preview: @procedure.draft_revision.valid? }
|
2018-11-14 16:28:02 +01:00
|
|
|
|
|
2023-09-28 17:30:01 +02:00
|
|
|
|
.fr-container
|
2024-05-28 14:56:32 +02:00
|
|
|
|
.flex.justify-between.align-center.fr-mb-3w
|
|
|
|
|
%h1.fr-h2 Champs du formulaire
|
|
|
|
|
- if @procedure.revised?
|
|
|
|
|
= link_to "Voir l'historique des modifications du formulaire", modifications_admin_procedure_path(@procedure), class: 'fr-link'
|
|
|
|
|
|
2023-03-31 16:10:47 +02:00
|
|
|
|
= render NestedForms::FormOwnerComponent.new
|
2024-01-04 16:20:27 +01:00
|
|
|
|
.fr-grid-row
|
2024-06-21 05:49:42 +02:00
|
|
|
|
= render TypesDeChampEditor::HeaderSectionsSummaryComponent.new(procedure: @procedure, is_private: false)
|
2024-11-04 17:00:03 +01:00
|
|
|
|
.fr-col{ data: { controller: "lazy-modal" } }
|
2024-06-03 07:44:27 +02:00
|
|
|
|
= render TypesDeChampEditor::EditorComponent.new(revision: @procedure.draft_revision, is_annotation: false)
|
2023-10-12 16:04:58 +02:00
|
|
|
|
|
2024-11-04 17:00:03 +01:00
|
|
|
|
%dialog#api-champ-columns-modal.fr-modal{ "aria-labelledby" => 'fr-modal-api-champ-columns-h1', role: "dialog" }
|
|
|
|
|
.fr-container.fr-container--fluid.fr-container-md
|
|
|
|
|
.fr-grid-row.fr-grid-row--center
|
|
|
|
|
.fr-col-12.fr-col-md-8
|
|
|
|
|
.fr-modal__body
|
|
|
|
|
.fr-modal__header
|
|
|
|
|
%button.fr-btn--close.fr-btn{ aria: { controls: "api-champ-columns-modal" }, title: t('utils.modal_close_alt') }= t('utils.modal_close')
|
|
|
|
|
.fr-modal__content
|
|
|
|
|
= turbo_frame_tag "api-champ-columns", data: { "lazy-modal-target": "frame" }
|
|
|
|
|
|
|
|
|
|
|
2023-10-24 11:07:26 +02:00
|
|
|
|
.padded-fixed-footer
|
|
|
|
|
.fixed-footer
|
|
|
|
|
.fr-container
|
|
|
|
|
.flex
|
2024-05-22 15:09:37 +02:00
|
|
|
|
%ul.fr-btns-group.fr-btns-group--inline-md.fr-ml-0
|
2023-10-12 16:04:58 +02:00
|
|
|
|
%li
|
2024-05-22 15:09:37 +02:00
|
|
|
|
= link_to admin_procedure_path(id: @procedure), class: 'fr-link fr-icon-arrow-left-line fr-link--icon-left fr-mb-2w fr-mr-2w' do
|
2024-10-16 14:44:58 +02:00
|
|
|
|
Revenir à l’écran de gestion
|
2023-10-24 11:07:26 +02:00
|
|
|
|
- if @procedure.draft_revision.revision_types_de_champ_public.count > 0
|
|
|
|
|
%li
|
2024-05-22 15:09:37 +02:00
|
|
|
|
= link_to t('preview', scope: [:layouts, :breadcrumb]), apercu_admin_procedure_path(@procedure), target: "_blank", rel: "noopener", class: 'fr-link fr-mb-2w'
|
2023-10-24 11:07:26 +02:00
|
|
|
|
.fr-ml-auto
|
2023-11-15 12:14:12 +01:00
|
|
|
|
#autosave-notice.hidden
|
2023-10-24 11:07:26 +02:00
|
|
|
|
= render TypesDeChampEditor::EstimatedFillDurationComponent.new(revision: @procedure.draft_revision, is_annotation: false)
|