choose zone options with correct label
label of the zone is the one available when the procedure has been published (or at the creation if the procedure has not been published)
This commit is contained in:
parent
62f19aba8a
commit
9a9330159c
4 changed files with 56 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
= f.label :zone do
|
||||
= t('zone', scope: 'activerecord.attributes.procedure')
|
||||
%span.mandatory *
|
||||
= f.select :zone_id, grouped_options_for_zone
|
||||
= f.select :zone_id, grouped_options_for_zone(@procedure.published_or_created_at)
|
||||
|
||||
%h3.header-subsection Logo de la démarche
|
||||
= render Attachment::EditComponent.new(form: f, attached_file: @procedure.logo, direct_upload: true, user_can_destroy: true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue