Harmonisation des pages de login

This commit is contained in:
Xavier J 2015-11-20 17:50:27 +01:00
parent 12c621d2bf
commit 27dedb1f7b
4 changed files with 58 additions and 22 deletions

View file

@ -8,6 +8,7 @@
padding: 20px;
#btn_fc {
margin-top:8%;
background-image: image-url('logo_FC_02.png');
background-repeat: no-repeat;
background-size: 38px;

View file

@ -1,10 +1,27 @@
%h1 Bienvenue sur TPS - Administration
%br
#gestionnaire_login
#form_login
= image_tag('logo-tps.png')
%br
%h2#login_user Administration
%br
%br
#new_user
= form_for @administrateur, url: {controller: 'administrateurs/sessions', action: :create } do |f|
.form-group-lg
.form-group
= f.text_field :email, class: 'form-control', placeholder: 'Email'
.form-group
= f.password_field :password, class: 'form-control', placeholder: 'Mot de passe'
= f.submit 'Se connecter', class: %w(btn btn-lg btn-success), data: { disable_with: 'Connexion', submit: true }
%h4
= f.label :email
.input-group
.input-group-addon
%span.glyphicon.glyphicon-user
= f.email_field :email, class: 'form-control'
%br
%h4
= f.label :password
.input-group
.input-group-addon
%span.glyphicon.glyphicon-asterisk
= f.password_field :password, autocomplete: "off", class: 'form-control'
%br
%br
.actions
= f.submit "Se connecter", class:'btn btn-primary'
%br

View file

@ -1,10 +1,27 @@
%h1 Bienvenue sur TPS - Gestionnaire
%br
#gestionnaire_login
#form_login
= image_tag('logo-tps.png')
%br
%h2#gestionnaire_login Gestionnaire
%br
%br
#new_user
= form_for @gestionnaire, url: {controller: 'gestionnaires/sessions', action: :create } do |f|
.form-group-lg
.form-group
= f.text_field :email, class: 'form-control', placeholder: 'Email'
.form-group
= f.password_field :password, class: 'form-control', placeholder: 'Mot de passe'
= f.submit 'Se connecter', class: %w(btn btn-lg btn-success), data: { disable_with: 'Connexion', submit: true }
%h4
= f.label :email
.input-group
.input-group-addon
%span.glyphicon.glyphicon-user
= f.email_field :email, class: 'form-control'
%br
%h4
= f.label :password
.input-group
.input-group-addon
%span.glyphicon.glyphicon-asterisk
= f.password_field :password, autocomplete: "off", class: 'form-control'
%br
%br
.actions
= f.submit "Se connecter", class:'btn btn-primary'
%br

View file

@ -1,7 +1,8 @@
#form_login
%h1#login_user Connexion
%br
= image_tag('logo-tps.png')
%br
%h2#login_user Connexion
%a.btn.btn-default.btn-lg.btn-primary#btn_fc{href: '/france_connect'}
%div{style:'margin-left:35px'}
S'identifier avec