new home page connexion

This commit is contained in:
Xavier J 2015-10-06 18:33:01 +02:00
parent d655b2319a
commit 72506df419
5 changed files with 50 additions and 20 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View file

@ -83,4 +83,10 @@ textarea#description {
}
input#nom_projet {
width: 100%;
}
.border-left {
border-left-color: #CCCCCC;
border-left-style: solid;
border-left-width: 1px;
}

View file

@ -0,0 +1,15 @@
#form_login{
text-align:center;
h4{
margin-top:11px;
}
input {
max-width:50%;
margin-top:5px;
margin-left:auto;
margin-right:auto;
}
#logo_fc {
margin-bottom:36px;
}
}

View file

@ -1,19 +1,30 @@
%h2#login_user Connexion
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.field
= f.label :email
%br
= f.email_field :email, autofocus: true
.field
= f.label :password
%br
= f.password_field :password, autocomplete: "off"
%br
/ - if devise_mapping.rememberable?
/ .field
/ = f.check_box :remember_me
/ = f.label :remember_me
.actions
= f.submit "Se connecter"
#div{style:'text-align:center'}
%h2#login_user Connexion
%br
%div#form_login.row
%div.col-md-6.col-lg-6
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
%h4
= f.label :email
= f.email_field :email, autofocus: true, class: 'form-control'
%br
%h4
= f.label :password
= f.password_field :password, autocomplete: "off", class: 'form-control'
%br
/ - if devise_mapping.rememberable?
/ .field
/ = f.check_box :remember_me
/ = f.label :remember_me
.actions
= f.submit "Se connecter", class:'btn btn-primary btn-lg'
%br
= render "users/shared/links"
%div.col-md-6.col-lg-6.border-left
%img#logo_fc{src: '/assets/logo_FC_03.png', style:'max-height:180px'}
%br
%button.btn.btn-info.btn-lg
= link_to "Se connecter", '/france_connect', id: 'france_connect', style:'color:white; text-decoration: none'
= render "users/shared/links"

View file

@ -6,8 +6,6 @@
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
<% end -%>
<%= link_to "Connect with France Connect", '/france_connect', id: 'france_connect' %><br />
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
<% end -%>