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; padding: 20px;
#btn_fc { #btn_fc {
margin-top:8%;
background-image: image-url('logo_FC_02.png'); background-image: image-url('logo_FC_02.png');
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 38px; background-size: 38px;

View file

@ -1,10 +1,27 @@
%h1 Bienvenue sur TPS - Administration #form_login
%br = image_tag('logo-tps.png')
#gestionnaire_login %br
= form_for @administrateur, url: {controller: 'administrateurs/sessions', action: :create } do |f| %h2#login_user Administration
.form-group-lg
.form-group %br
= f.text_field :email, class: 'form-control', placeholder: 'Email' %br
.form-group #new_user
= f.password_field :password, class: 'form-control', placeholder: 'Mot de passe' = form_for @administrateur, url: {controller: 'administrateurs/sessions', action: :create } do |f|
= 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 #form_login
%br = image_tag('logo-tps.png')
#gestionnaire_login %br
= form_for @gestionnaire, url: {controller: 'gestionnaires/sessions', action: :create } do |f| %h2#gestionnaire_login Gestionnaire
.form-group-lg
.form-group %br
= f.text_field :email, class: 'form-control', placeholder: 'Email' %br
.form-group #new_user
= f.password_field :password, class: 'form-control', placeholder: 'Mot de passe' = form_for @gestionnaire, url: {controller: 'gestionnaires/sessions', action: :create } do |f|
= 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 #form_login
%h1#login_user Connexion = image_tag('logo-tps.png')
%br
%br %br
%h2#login_user Connexion
%a.btn.btn-default.btn-lg.btn-primary#btn_fc{href: '/france_connect'} %a.btn.btn-default.btn-lg.btn-primary#btn_fc{href: '/france_connect'}
%div{style:'margin-left:35px'} %div{style:'margin-left:35px'}
S'identifier avec S'identifier avec