2016-02-08 18:16:18 +01:00
|
|
|
%h3 Personnes invitées à voir ce dossier
|
|
|
|
|
|
|
|
%br
|
|
|
|
.row
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-4
|
2016-02-08 18:16:18 +01:00
|
|
|
- if @facade.invites.size > 0
|
|
|
|
%ul
|
|
|
|
- @facade.invites.each do |invite|
|
|
|
|
%li
|
|
|
|
= invite.email
|
|
|
|
- else
|
2016-11-03 16:46:26 +01:00
|
|
|
Aucune personne invitée
|
2016-02-08 18:16:18 +01:00
|
|
|
|
2017-02-14 17:08:14 +01:00
|
|
|
.col-xs-3
|
2016-12-26 14:16:08 +01:00
|
|
|
= form_tag invites_dossier_path(dossier_id: @facade.dossier.id), method: :post, class: 'form-inline' do
|
|
|
|
= text_field_tag :email, '', class: 'form-control', placeholder: 'Envoyer une invitation'
|
2017-04-06 19:10:25 +02:00
|
|
|
= submit_tag 'Ajouter', class: 'btn btn-success', id: 'send-invitation', data: { confirm: "Envoyer l'invitation ?" }
|