pimp login
This commit is contained in:
parent
fe0e9e2316
commit
7888395163
1 changed files with 22 additions and 10 deletions
|
|
@ -1,10 +1,22 @@
|
|||
= tag.div(flash[:alert], style: "color:red") if flash[:alert]
|
||||
= tag.div(flash[:notice], style: "color:green") if flash[:notice]
|
||||
= form_with url: session_path do |form|
|
||||
= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address]
|
||||
%br/
|
||||
= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72
|
||||
%br/
|
||||
= form.submit "Sign in"
|
||||
%br/
|
||||
= link_to "Forgot password?", new_password_path
|
||||
%main.columns.m-auto{"data-controller" => "mood"}
|
||||
.column.is-hidden-mobile
|
||||
%section.m-4
|
||||
%figure.image.has-ratio
|
||||
= image_tag("croisiere.jpg")
|
||||
%section.section.column.has-background-primary-light.is-flex.is-flex-direction-column.is-justify-content-center
|
||||
%h1.title Connexion au tableau de bord de la KLUK
|
||||
.flash.mb-2
|
||||
.has-text-danger= flash[:alert] if flash[:alert]
|
||||
.has-text-info= flash[:notice] if flash[:notice]
|
||||
= form_with url: session_path do |form|
|
||||
.field
|
||||
= form.label :email_address, "Email"
|
||||
.control
|
||||
= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Entrez votre email", value: params[:email_address], class: "input"
|
||||
.field
|
||||
= form.label :password, "Mot de passe"
|
||||
.control
|
||||
= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Entrez votre mot de passe", maxlength: 72, class: "input"
|
||||
.field
|
||||
.control
|
||||
%button.button.is-link Se connecter
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue