Merge pull request #3285 from betagouv/migrate-sign-up
[Page de garde] Migre la page sign_up vers le layout partagé
This commit is contained in:
commit
70c01cca94
2 changed files with 18 additions and 27 deletions
|
@ -6,6 +6,8 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
||||||
# super
|
# super
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
layout 'procedure_context', only: [:new, :create]
|
||||||
|
|
||||||
# GET /resource/sign_up
|
# GET /resource/sign_up
|
||||||
def new
|
def new
|
||||||
# Allow pre-filling the user email from a query parameter
|
# Allow pre-filling the user email from a query parameter
|
||||||
|
|
|
@ -1,21 +1,10 @@
|
||||||
.two-columns.auth
|
.auth-form
|
||||||
.columns-container
|
|
||||||
.column.procedure-preview
|
|
||||||
= image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo"
|
|
||||||
.baseline.center
|
|
||||||
%h3 Un outil simple
|
|
||||||
%p
|
|
||||||
pour gérer les formulaires
|
|
||||||
%br
|
|
||||||
administratifs dématérialisés.
|
|
||||||
|
|
||||||
.column.procedure-context-content.auth-form
|
|
||||||
= devise_error_messages!
|
= devise_error_messages!
|
||||||
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
|
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
|
||||||
%h1 Créez-vous un compte
|
%h1 Créez-vous un compte demarches-simplifiees.fr
|
||||||
|
|
||||||
= f.label :email, "Email"
|
= f.label :email, "Email"
|
||||||
= f.text_field :email, autofocus: true
|
= f.text_field :email, autofocus: true, placeholder: "Votre adresse email"
|
||||||
|
|
||||||
= f.label :password, "Mot de passe"
|
= f.label :password, "Mot de passe"
|
||||||
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
||||||
|
|
Loading…
Reference in a new issue