2022-09-26 19:02:39 +02:00
|
|
|
- content_for(:root_class, 'scroll-margins-for-sticky-footer')
|
|
|
|
|
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-12-08 17:28:48 +01:00
|
|
|
locals: { steps: [['Démarches', admin_procedures_back_path(@procedure)],
|
2022-09-26 19:02:39 +02:00
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
|
|
|
['Description']] }
|
2024-05-23 16:52:53 +02:00
|
|
|
= form_for @procedure,
|
|
|
|
url: url_for({ controller: 'administrateurs/procedures', action: :update, id: @procedure.id }),
|
|
|
|
html: { multipart: true } do |f|
|
2022-09-26 19:02:39 +02:00
|
|
|
|
2024-05-23 16:52:53 +02:00
|
|
|
.fr-container
|
|
|
|
%h1.fr-h2 Zones
|
2022-09-26 19:02:39 +02:00
|
|
|
|
2022-12-20 09:22:28 +01:00
|
|
|
- if Rails.application.config.ds_zonage_enabled
|
2023-09-05 10:33:08 +02:00
|
|
|
%fieldset.fr-fieldset{ aria: { labelledby: "zones-legend"} }
|
|
|
|
%legend#zones-legend.fr-fieldset__legend--regular.fr-fieldset__legend= t('zone', scope: 'activerecord.attributes.procedure')
|
|
|
|
= f.collection_check_boxes :zone_ids, current_administrateur.default_zones, :id, :current_label do |b|
|
|
|
|
.fr-fieldset__element
|
|
|
|
.fr-checkbox-group
|
|
|
|
= b.check_box
|
|
|
|
= b.label class: "fr-label font-weight-bold"
|
|
|
|
= f.collection_check_boxes :zone_ids, Zone.available_at(@procedure.published_or_created_at, current_administrateur.default_zones), :id, :label do |b|
|
|
|
|
.fr-fieldset__element
|
|
|
|
.fr-checkbox-group
|
|
|
|
= b.check_box
|
|
|
|
= b.label class: "fr-label"
|
2022-09-26 19:02:39 +02:00
|
|
|
|
2024-05-27 17:56:05 +02:00
|
|
|
= render Procedure::FixedFooterComponent.new(procedure: @procedure, form: f)
|