a11y(select): use new ComboMultiple component
This commit is contained in:
parent
d6b6bb0f2a
commit
3513182e7c
6 changed files with 44 additions and 34 deletions
|
@ -8,8 +8,12 @@
|
|||
Le destinataire suivra automatiquement le dossier
|
||||
= form_for dossier, url: send_to_instructeurs_instructeur_dossier_path(dossier.procedure, dossier), method: :post, html: { class: 'form recipients-form' } do |f|
|
||||
.flex.justify-start.align-start
|
||||
- hidden_field_id = SecureRandom.uuid
|
||||
= hidden_field_tag :recipients, nil, data: { uuid: hidden_field_id }
|
||||
= react_component("ComboMultipleDropdownList", options: potential_recipients.map{|r| [r.email, r.id]}, selected: [], disabled: [], hiddenFieldId: hidden_field_id, label: "email instructeur")
|
||||
= hidden_field_tag :recipients, nil
|
||||
= react_component("ComboMultiple",
|
||||
options: potential_recipients.map{|r| [r.email, r.id]},
|
||||
selected: [], disabled: [],
|
||||
group: '.recipients-form',
|
||||
name: 'recipients',
|
||||
label: 'Emails')
|
||||
|
||||
= f.submit "Envoyer", class: "button large send gap-left"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue