Multiple drop down list au DSFR

This commit is contained in:
Kara Diaby 2023-07-25 09:21:16 +02:00 committed by Martin
parent 7bc7106a96
commit 74d04c84f5

View file

@ -12,7 +12,7 @@
- else - else
%div{ 'data-turbo-focus-group': true } %div{ 'data-turbo-focus-group': true }
- if @champ.selected_options.present? - if @champ.selected_options.present?
.fr-mb-2w .fr-mb-2w{ "data-turbo": "true" }
- @champ.selected_options.each do |option| - @champ.selected_options.each do |option|
= render NestedForms::OwnedButtonComponent.new(formaction: champs_options_path(@champ.id, option:), http_method: :delete, opt: { class: 'fr-tag fr-tag-bug fr-mb-1w fr-mr-1w', id: @champ.checkbox_id(option) }) do = render NestedForms::OwnedButtonComponent.new(formaction: champs_options_path(@champ.id, option:), http_method: :delete, opt: { class: 'fr-tag fr-tag-bug fr-mb-1w fr-mr-1w', id: @champ.checkbox_id(option) }) do
= option = option