From 11a9a6f53f2972d8ebc61bbaf33c97cd5562b802 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 2 Aug 2022 15:27:47 +0200 Subject: [PATCH] feat(dossier_transfer/email): require email in browser side --- app/views/users/dossiers/transferer.html.haml | 2 +- app/views/users/dossiers/transferer_all.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/dossiers/transferer.html.haml b/app/views/users/dossiers/transferer.html.haml index 8b2e955cf..29d1c5280 100644 --- a/app/views/users/dossiers/transferer.html.haml +++ b/app/views/users/dossiers/transferer.html.haml @@ -4,6 +4,6 @@ = form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f| = 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.submit "Envoyer la demande de transfert", class: 'button primary' diff --git a/app/views/users/dossiers/transferer_all.html.haml b/app/views/users/dossiers/transferer_all.html.haml index 229a6255e..71598242f 100644 --- a/app/views/users/dossiers/transferer_all.html.haml +++ b/app/views/users/dossiers/transferer_all.html.haml @@ -3,5 +3,5 @@ = form_for @transfer, url: transfers_path, html: { class: 'form mt-2' } do |f| = 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'