amelioraiton(instructeur.filtres): utilise un combobox pour rechercher le type de champs
This commit is contained in:
parent
f27ef80553
commit
1f13000537
6 changed files with 41 additions and 18 deletions
|
@ -23,6 +23,7 @@ class Dsfr::ComboboxComponent < ApplicationComponent
|
|||
id: input_id,
|
||||
class: input_class,
|
||||
role: 'combobox',
|
||||
data: @html_options[:data],
|
||||
'aria-expanded': 'false',
|
||||
'aria-describedby': @html_options[:describedby]
|
||||
}.compact
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
.fr-ds-combobox-input
|
||||
%input{ value: selected_option_label_input_value, **html_input_options }
|
||||
- if form
|
||||
= form.hidden_field name, value: selected_option_value_input_value, form: form_id
|
||||
= form.hidden_field name, value: selected_option_value_input_value, form: form_id, data: html_input_options[:data]
|
||||
- else
|
||||
%input{ type: 'hidden', name:, value: selected_option_value_input_value, form: form_id }
|
||||
%input{ type: 'hidden', name: name, value: selected_option_value_input_value, form: form_id, data: html_input_options[:data] }
|
||||
.fr-menu
|
||||
%ul.fr-menu__list.hidden{ role: 'listbox', hidden: true, id: list_id, data: { turbo_force: :browser, options: options_json, url:, hints: hints_json }.compact }
|
||||
.sr-only{ aria: { live: 'polite', atomic: 'true' }, data: { turbo_force: :browser } }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue