new home page connexion
This commit is contained in:
parent
d655b2319a
commit
72506df419
5 changed files with 50 additions and 20 deletions
BIN
app/assets/images/logo_FC_03.png
Normal file
BIN
app/assets/images/logo_FC_03.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 55 KiB |
|
@ -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;
|
||||
}
|
15
app/assets/stylesheets/login.scss
Normal file
15
app/assets/stylesheets/login.scss
Normal 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;
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
|
|
|
@ -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 -%>
|
||||
|
|
Loading…
Reference in a new issue