2018-08-01 17:27:50 +02:00
|
|
|
#invites-form
|
2022-10-05 11:24:49 +02:00
|
|
|
- if 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
|
2022-10-05 11:24:49 +02:00
|
|
|
- invites.each do |invite|
|
2020-07-14 18:25:31 +02:00
|
|
|
%li
|
|
|
|
= invite.email
|
2022-05-24 11:59:14 +02:00
|
|
|
%small{ 'data-turbo': 'true' }
|
|
|
|
= link_to t('views.invites.form.withdraw_permission'), invite_path(invite), data: { turbo_method: :delete, turbo_confirm: t('views.invites.form.want_to_withdraw_permission') }
|
2021-04-17 18:49:00 +02:00
|
|
|
%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
|
|
|
|
2022-05-24 11:59:14 +02:00
|
|
|
= form_tag dossier_invites_path(dossier), data: { turbo: 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'
|