2021-11-25 16:26:55 +01: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)],
|
2022-08-17 13:53:07 +02:00
|
|
|
['Configuration des champs']], preview: @procedure.draft_revision.valid? }
|
2018-11-14 16:28:02 +01:00
|
|
|
|
2023-09-28 17:30:01 +02:00
|
|
|
.fr-container
|
2018-11-14 16:28:02 +01:00
|
|
|
%h1 Configuration des champs
|
2023-03-31 16:10:47 +02:00
|
|
|
= render NestedForms::FormOwnerComponent.new
|
2023-10-12 16:04:58 +02:00
|
|
|
= render TypesDeChampEditor::EditorComponent.new(revision: @procedure.draft_revision)
|
|
|
|
|
2023-10-24 11:07:26 +02:00
|
|
|
.padded-fixed-footer
|
|
|
|
.fixed-footer
|
|
|
|
.fr-container
|
|
|
|
.flex
|
|
|
|
%ul.fr-btns-group.fr-btns-group--inline-md
|
2023-10-12 16:04:58 +02:00
|
|
|
%li
|
2023-10-24 11:07:26 +02:00
|
|
|
= link_to t('continue', scope: [:layouts, :breadcrumb]), admin_procedure_path(@procedure), title: t('continue_title', scope: [:layouts, :breadcrumb]), class: 'fr-btn'
|
|
|
|
- if @procedure.draft_revision.revision_types_de_champ_public.count > 0
|
|
|
|
%li
|
|
|
|
= link_to t('preview', scope: [:layouts, :breadcrumb]), apercu_admin_procedure_path(@procedure), target: "_blank", rel: "noopener", class: 'fr-btn fr-btn--secondary'
|
|
|
|
.fr-ml-auto
|
|
|
|
= render TypesDeChampEditor::EstimatedFillDurationComponent.new(revision: @procedure.draft_revision, is_annotation: false)
|