Avis sign up should use generic layout
This commit is contained in:
parent
3f20d6fb9d
commit
482002fe79
4 changed files with 15 additions and 30 deletions
|
@ -2,14 +2,6 @@
|
|||
@import "colors";
|
||||
|
||||
.avis-sign-up {
|
||||
display: flex;
|
||||
|
||||
.left,
|
||||
.right {
|
||||
width: 50%;
|
||||
padding: 60px 86px;
|
||||
}
|
||||
|
||||
.left {
|
||||
p {
|
||||
margin: auto;
|
||||
|
@ -28,12 +20,4 @@
|
|||
margin-top: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
background-color: $light-grey;
|
||||
|
||||
form {
|
||||
max-width: 420px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ $login-breakpoint: 820px;
|
|||
}
|
||||
|
||||
@media (max-width: $login-breakpoint) {
|
||||
.two-columns {
|
||||
.two-columns.login {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
.avis-sign-up
|
||||
.left
|
||||
%p.description= @dossier.procedure.libelle
|
||||
%p.dossier Dossier nº #{@dossier.id}
|
||||
.right
|
||||
= form_for(Gestionnaire.new, url: { controller: "backoffice/avis", action: :create_gestionnaire }, method: :post, html: { class: "form" }) do |f|
|
||||
%h1 Créez-vous un compte
|
||||
.two-columns.avis-sign-up
|
||||
.columns-container
|
||||
.column.left
|
||||
%p.description= @dossier.procedure.libelle
|
||||
%p.dossier Dossier nº #{@dossier.id}
|
||||
.column
|
||||
= form_for(Gestionnaire.new, url: { controller: "backoffice/avis", action: :create_gestionnaire }, method: :post, html: { class: "form" }) do |f|
|
||||
%h1 Créez-vous un compte
|
||||
|
||||
= f.label :email, "Email"
|
||||
= f.email_field :email, value: @email, disabled: true
|
||||
= 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"
|
||||
= f.label :password, "Mot de passe"
|
||||
= f.password_field :password, autofocus: true, required: true, placeholder: "8 caractères minimum"
|
||||
|
||||
= f.submit "Créer un compte", class: "button large primary expand"
|
||||
= f.submit "Créer un compte", class: "button large primary expand"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.two-columns
|
||||
.two-columns.login
|
||||
.columns-container
|
||||
.column.preview
|
||||
- unless @dossier
|
||||
|
|
Loading…
Add table
Reference in a new issue