refactor(departements): champ departements to use simple select

This commit is contained in:
Paul Chavard 2022-12-20 21:29:18 +01:00
parent f7c1dff22a
commit e0b0a42bc3
5 changed files with 115 additions and 19 deletions

View file

@ -1,7 +1 @@
= @form.hidden_field :value
= @form.hidden_field :external_id
= react_component("ComboDepartementsSearch",
required: @champ.required?,
id: @champ.input_id,
className: "width-33-desktop width-100-mobile",
describedby: @champ.describedby_id)
= @form.select :value, options, select_options, required: @champ.mandatory?, id: @champ.input_id, aria: { describedby: @champ.describedby_id }, class: "width-33-desktop width-100-mobile"