demarches-normaliennes/app/views/invites/_form.html.haml

30 lines
1.3 KiB
Text
Raw Normal View History

#invites-form
- if invites.present?
2021-04-17 18:49:00 +02:00
%h4= t('views.invites.form.invite_to_participate')
%ul
- invites.each do |invite|
%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')
- if dossier.brouillon?
2021-04-17 18:49:00 +02:00
%p= t('views.invites.form.submit_dossier_yourself')
- 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')
2022-05-24 11:59:14 +02:00
= form_tag dossier_invites_path(dossier), data: { turbo: true }, method: :post, class: 'form' do
.row
.col
%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
.col
%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')
.col
2021-04-17 18:49:00 +02:00
= submit_tag t('views.invites.form.send_invitation'), class: 'button accepted'