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
|
2018-09-10 17:52:49 +02:00
|
|
|
= form_for dossier, url: send_to_instructeurs_gestionnaire_dossier_path(dossier.procedure, dossier), method: :post, html: { class: 'form recipients-form' } do |f|
|
|
|
|
.flex.justify-start.align-start
|
|
|
|
= select_tag(:recipients,
|
|
|
|
options_from_collection_for_select(potential_recipients, :id, :email),
|
|
|
|
multiple: true,
|
|
|
|
class: 'select2-limited',
|
|
|
|
placeholder: '')
|
2018-02-07 20:30:12 +01:00
|
|
|
= f.submit "Envoyer", class: "button large send gap-left"
|