2018-08-29 22:11:38 +02:00
|
|
|
.tab-title= "Envoyer ce dossier à un autre instructeur"
|
2018-01-30 19:11:07 +01:00
|
|
|
|
2018-02-07 20:30:12 +01:00
|
|
|
- if potential_recipients.empty?
|
|
|
|
%p.tab-paragraph
|
2018-09-05 14:48:42 +02:00
|
|
|
Vous êtes le seul instructeur assigné sur cette démarche
|
2018-02-07 20:30:12 +01:00
|
|
|
- else
|
2019-11-19 16:01:43 +01:00
|
|
|
%p.tab-paragrah.mb-1
|
|
|
|
Le destinataire suivra automatiquement le dossier
|
2019-08-06 11:02:54 +02:00
|
|
|
= form_for dossier, url: send_to_instructeurs_instructeur_dossier_path(dossier.procedure, dossier), method: :post, html: { class: 'form recipients-form' } do |f|
|
2018-09-10 17:52:49 +02:00
|
|
|
.flex.justify-start.align-start
|
2021-02-11 15:31:10 +01:00
|
|
|
- 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")
|
|
|
|
|
2018-02-07 20:30:12 +01:00
|
|
|
= f.submit "Envoyer", class: "button large send gap-left"
|