fix: suggest multiple_drop_down options on the filter component

This commit is contained in:
simon lehericey 2024-10-16 17:58:54 +02:00
parent 4059bfdc11
commit 7963746ed7
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -9,7 +9,7 @@
%input.hidden{ type: 'submit', formaction: update_filter_instructeur_procedure_path(procedure), data: { autosubmit_target: 'submitter' } }
= label_tag :value, t('.value'), for: 'value', class: 'fr-label'
- if column_type == :enum
- if column_type == :enum || column_type == :enums
= select_tag :filter, options_for_select(options_for_select_of_column), id: 'value', name: "#{prefix}[filter]", class: 'fr-select', data: { no_autosubmit: true }
- else
%input#value.fr-input{ type: column_type, name: "#{prefix}[filter]", maxlength: FilteredColumn::FILTERS_VALUE_MAX_LENGTH, disabled: column.nil? ? true : false, data: { no_autosubmit: true } }