From f74462d826d0435bd4d83987f437a8a2c7e26240 Mon Sep 17 00:00:00 2001 From: Mathieu Magnin Date: Tue, 20 Jun 2017 10:03:49 +0200 Subject: [PATCH] Use generic css for avis_sign_up --- .../stylesheets/new_design/avis_sign_up.scss | 46 ------------------- app/assets/stylesheets/new_design/forms.scss | 5 ++ app/views/backoffice/avis/sign_up.html.haml | 4 +- 3 files changed, 7 insertions(+), 48 deletions(-) diff --git a/app/assets/stylesheets/new_design/avis_sign_up.scss b/app/assets/stylesheets/new_design/avis_sign_up.scss index 9c94d35af..9c4d414b9 100644 --- a/app/assets/stylesheets/new_design/avis_sign_up.scss +++ b/app/assets/stylesheets/new_design/avis_sign_up.scss @@ -41,51 +41,5 @@ form { max-width: 420px; } - - label, - input { - display: block; - width: 100%; - } - - label { - font-size: 14px; - line-height: 1.57; - margin: 24px 0 8px; - } - - input { - border: solid 1px $border-grey; - border-radius: 4px; - height: 56px; - padding: 0 15px; - font-family: Muli; - font-size: 14px; - - &:disabled { - background-color: $border-grey; - } - } - - button { - display: inline-block; - height: 60px; - line-height: 60px; - border: none; - border-radius: 60px; - background-color: $blue; - color: #FFFFFF; - font-size: 16px; - text-align: center; - width: 100%; - margin: 55px 0; - - &:hover { - color: #FFFFFF; - text-decoration: none; - background-color: $light-blue; - cursor: pointer; - } - } } } diff --git a/app/assets/stylesheets/new_design/forms.scss b/app/assets/stylesheets/new_design/forms.scss index 54a11e51b..d3a848c77 100644 --- a/app/assets/stylesheets/new_design/forms.scss +++ b/app/assets/stylesheets/new_design/forms.scss @@ -17,11 +17,16 @@ } input[type=text], + input[type=email], input[type=password] { display: block; width: 100%; border-radius: 4px; border: solid 1px $border-grey; padding: 16px; + + &:disabled { + background-color: $border-grey; + } } } diff --git a/app/views/backoffice/avis/sign_up.html.haml b/app/views/backoffice/avis/sign_up.html.haml index 9aa3c5bcc..71729679d 100644 --- a/app/views/backoffice/avis/sign_up.html.haml +++ b/app/views/backoffice/avis/sign_up.html.haml @@ -5,11 +5,11 @@ .right %h1 Créez-vous un compte - = form_for(Gestionnaire.new, url: { controller: "backoffice/avis", action: :create_gestionnaire }, method: :post) do |f| + = form_for(Gestionnaire.new, url: { controller: "backoffice/avis", action: :create_gestionnaire }, method: :post, html: { class: "form" }) do |f| = f.label :email, "Email" = f.email_field :email, value: @email, disabled: true = f.label :password, "Mot de passe" = f.password_field :password, autofocus: true, required: true, placeholder: "8 caractères minimum" - %button Créer un compte + = f.submit "Créer un compte", class: "button large primary expand"