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
|
2023-02-21 12:30:09 +01:00
|
|
|
= form_for dossier, url: send_to_instructeurs_instructeur_dossier_path(dossier.procedure, dossier), method: :post, html: { class: 'form recipients-form fr-mb-4w' } do |f|
|
|
|
|
= 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')
|
2021-02-11 15:31:10 +01:00
|
|
|
|
2023-02-21 12:30:09 +01:00
|
|
|
= f.submit "Envoyer", class: "fr-btn fr-mt-2w"
|