From 3db2d44fc02330def039394bdda0481c127c4e0b Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Thu, 28 Nov 2019 15:34:46 +0100 Subject: [PATCH] affiche un warning pour l'email qqsoit l'email --- app/assets/stylesheets/new_design/user_signup.scss | 10 ++++++++++ app/views/users/registrations/new.html.haml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 app/assets/stylesheets/new_design/user_signup.scss diff --git a/app/assets/stylesheets/new_design/user_signup.scss b/app/assets/stylesheets/new_design/user_signup.scss new file mode 100644 index 000000000..4592e34b0 --- /dev/null +++ b/app/assets/stylesheets/new_design/user_signup.scss @@ -0,0 +1,10 @@ +@import "colors"; +@import "constants"; + +.suspect-email { + background-color: $orange-bg; + font-weight: bold; + text-align: center; + padding: $default-padding; +} + diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index d21b184be..f474b6661 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -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"