affiche un warning pour l'email qqsoit l'email

This commit is contained in:
Christophe Robillard 2019-11-28 15:34:46 +01:00 committed by Pierre de La Morinerie
parent 185ea93b03
commit 3db2d44fc0
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,10 @@
@import "colors";
@import "constants";
.suspect-email {
background-color: $orange-bg;
font-weight: bold;
text-align: center;
padding: $default-padding;
}

View file

@ -5,6 +5,12 @@
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
%h1 Créez-vous un compte demarches-simplifiees.fr
.suspect-email
.question Vouliez-vous dire blabla@gmail.com ?
.answer
.button Oui
.button Non
= f.label :email, "Email"
= f.text_field :email, autofocus: true, placeholder: "Votre adresse email"