amelioration(champs.epci): passe le champs epci au DSFR et l'encapsule dans un fieldset
This commit is contained in:
parent
6aec12f02f
commit
a947457b57
2 changed files with 20 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
|||
%label.notice{ for: @champ.code_departement_input_id } Le département de l’EPCI
|
||||
= @form.select :code_departement, departement_options, departement_select_options, required: @champ.required?, id: @champ.code_departement_input_id, class: "width-33-desktop width-100-mobile fr-select"
|
||||
.fr-fieldset__element
|
||||
= @form.label "Le département de l’EPCI", for: @champ.code_departement_input_id, class: 'fr-label'
|
||||
= @form.select :code_departement, departement_options, departement_select_options, required: @champ.required?, id: @champ.code_departement_input_id, class: "width-33-desktop width-100-mobile fr-select"
|
||||
|
||||
- if @champ.departement?
|
||||
= @form.label "EPCI", for: @champ.epci_input_id
|
||||
= @form.select :value, epci_options, epci_select_options, required: @champ.required?, id: @champ.epci_input_id, aria: { describedby: @champ.describedby_id }, class: "width-33-desktop width-100-mobile fr-select"
|
||||
.fr-fieldset__element
|
||||
.fr-select-group
|
||||
= @form.label "EPCI", for: @champ.epci_input_id, class: 'fr-label'
|
||||
= @form.select :value, epci_options, epci_select_options, required: @champ.required?, id: @champ.epci_input_id, aria: { describedby: @champ.describedby_id }, class: "width-33-desktop width-100-mobile fr-select"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue