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']] }
|
|
|
|
|
.container
|
|
|
|
|
= form_for @procedure,
|
|
|
|
|
url: url_for({ controller: 'administrateurs/procedures', action: :update, id: @procedure.id }),
|
2022-11-22 17:46:16 +01:00
|
|
|
|
html: { multipart: true, class: 'form' } do |f|
|
2022-09-26 19:02:39 +02:00
|
|
|
|
|
|
|
|
|
%h1.page-title Zones
|
|
|
|
|
|
|
|
|
|
= f.label :zone do
|
|
|
|
|
= t('zone', scope: 'activerecord.attributes.procedure')
|
2022-12-20 09:22:28 +01:00
|
|
|
|
- if Rails.application.config.ds_zonage_enabled
|
2023-05-16 09:02:38 +02:00
|
|
|
|
= f.collection_check_boxes :zone_ids, current_administrateur.default_zones, :id, :current_label do |b|
|
|
|
|
|
.editable-champ.editable-champ-checkbox
|
|
|
|
|
= b.check_box
|
|
|
|
|
= b.label class: "admin-default-zone"
|
|
|
|
|
= f.collection_check_boxes :zone_ids, Zone.available_at(@procedure.published_or_created_at, current_administrateur.default_zones), :id, :label do |b|
|
2022-09-26 19:02:39 +02:00
|
|
|
|
.editable-champ.editable-champ-checkbox
|
|
|
|
|
= b.check_box
|
|
|
|
|
= b.label
|
|
|
|
|
|
|
|
|
|
.procedure-form__actions.sticky--bottom
|
|
|
|
|
.actions-right
|
|
|
|
|
= link_to 'Annuler', admin_procedure_path(id: @procedure), class: 'button', data: { confirm: 'Êtes-vous sûr de vouloir annuler les modifications effectuées ?'}
|
|
|
|
|
= f.button 'Enregistrer', class: 'button primary send'
|
|
|
|
|
|