2018-08-01 17:27:50 +02:00
|
|
|
#invites-form
|
|
|
|
- if dossier.invites.present?
|
2021-04-17 18:49:00 +02:00
|
|
|
%h4= t('views.invites.form.invite_to_participate')
|
2018-08-01 17:27:50 +02:00
|
|
|
%ul
|
|
|
|
- dossier.invites.each do |invite|
|
2020-07-14 18:25:31 +02:00
|
|
|
%li
|
|
|
|
= invite.email
|
2021-04-17 18:49:00 +02:00
|
|
|
%small= link_to(t('views.invites.form.withdraw_permission'), invite_path(invite), data: { confirm: t('views.invites.form.want_to_withdraw_permission') }, method: :delete, remote: true)
|
|
|
|
%p= t('views.invites.form.edit_dossier')
|
2018-08-01 17:27:50 +02:00
|
|
|
- if dossier.brouillon?
|
2021-04-17 18:49:00 +02:00
|
|
|
%p= t('views.invites.form.submit_dossier_yourself')
|
2018-08-01 17:27:50 +02:00
|
|
|
|
|
|
|
- else
|
2021-04-17 18:49:00 +02:00
|
|
|
%p= t('views.invites.form.invite_to_edit_line1')
|
|
|
|
%p= t('views.invites.form.invite_to_edit_line2')
|
2018-08-01 17:27:50 +02:00
|
|
|
|
2018-11-13 16:18:52 +01:00
|
|
|
= form_tag dossier_invites_path(dossier), remote: true, method: :post, class: 'form' do
|
2019-07-17 18:41:07 +02:00
|
|
|
.row
|
|
|
|
.col
|
2020-03-05 17:53:32 +01:00
|
|
|
%span
|
2021-04-17 18:49:00 +02:00
|
|
|
= label_tag :invite_email, t('views.invites.form.email')
|
|
|
|
= email_field_tag :invite_email, '', class: 'small', placeholder: t('views.invites.form.email'), required: true
|
2019-07-17 18:41:07 +02:00
|
|
|
.col
|
2020-03-05 17:53:32 +01:00
|
|
|
%span
|
2021-04-17 18:49:00 +02:00
|
|
|
= label_tag :invite_message, t('views.invites.form.invite_message')
|
|
|
|
= text_area_tag :invite_message, '', class: 'small', placeholder: t('views.invites.form.invite_message')
|
2019-07-17 18:41:07 +02:00
|
|
|
.col
|
2021-04-17 18:49:00 +02:00
|
|
|
= submit_tag t('views.invites.form.send_invitation'), class: 'button accepted'
|