feat(dossier_transfer/email): require email in browser side

This commit is contained in:
Colin Darie 2022-08-02 15:27:47 +02:00
parent d53aba4d24
commit 11a9a6f53f
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,6 @@
= form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f| = form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f|
= f.label :email, 'Email du compte destinataire' = f.label :email, 'Email du compte destinataire'
= f.email_field :email = f.email_field :email, required: true
= f.hidden_field :dossier, value: dossier.id = f.hidden_field :dossier, value: dossier.id
= f.submit "Envoyer la demande de transfert", class: 'button primary' = f.submit "Envoyer la demande de transfert", class: 'button primary'

View file

@ -3,5 +3,5 @@
= form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f| = form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f|
= f.label :email, 'Email du compte destinataire' = f.label :email, 'Email du compte destinataire'
= f.email_field :email = f.email_field :email, required: true
= f.submit "Envoyer la demande de transfert", class: 'button primary' = f.submit "Envoyer la demande de transfert", class: 'button primary'