2023-07-31 23:38:19 +02:00
|
|
|
#invites-form.fr-p-2w
|
2022-10-05 11:24:49 +02:00
|
|
|
- if invites.present?
|
2022-12-28 16:47:52 +01:00
|
|
|
#invite-list{ morphing ? { tabindex: "-1" } : {} }
|
2023-07-31 23:38:19 +02:00
|
|
|
%h4.fr-h6= t('views.invites.form.invite_to_participate')
|
2022-12-28 16:47:52 +01:00
|
|
|
%ul
|
|
|
|
- invites.each do |invite|
|
|
|
|
%li
|
|
|
|
= invite.email
|
|
|
|
%small{ 'data-turbo': 'true' }
|
2023-07-31 23:38:19 +02:00
|
|
|
= 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') }, class: "fr-btn fr-btn--sm fr-btn--tertiary-no-outline"
|
2022-12-28 16:47:52 +01:00
|
|
|
|
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
|
|
|
|
2023-07-31 23:38:19 +02:00
|
|
|
= form_tag dossier_invites_path(dossier), data: { turbo: true, turbo_force: :server }, method: :post do
|
|
|
|
.fr-input-group
|
|
|
|
= label_tag :invite_email, class: "fr-label" do
|
|
|
|
= t('views.invites.form.email')
|
|
|
|
%span.fr-hint-text= t('views.invites.form.email_hint')
|
|
|
|
= email_field_tag :invite_email, '', required: true, class: "fr-input"
|
|
|
|
|
|
|
|
.fr-input-group
|
|
|
|
= label_tag :invite_message, t('views.invites.form.invite_message'), class: "fr-label"
|
|
|
|
= text_area_tag :invite_message, '', class: "fr-input"
|
|
|
|
|
|
|
|
= submit_tag t('views.invites.form.send_invitation'), class: 'fr-btn fr-btn--secondary'
|