Commit 6d332ce1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve signin/signup/reset pages UI

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent f4fbc7b9
......@@ -6,12 +6,6 @@
}
.login-box{
position: relative;
margin: auto;
padding: 20px;
background: #f5f5f5;
border: 1px solid #EEE;
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.brand-image {
......@@ -27,7 +21,7 @@
}
.form-control {
background-color: #FFF;
background-color: #F5F5F5;
font-size: 16px;
padding: 14px 10px;
width: 100%;
......@@ -49,6 +43,10 @@
margin-bottom:0px;
@include border-radius(0);
}
&:active, &:focus {
background-color: #FFF;
}
}
.login-box a.forgot {
......
.login-box
%h3.page-title Resend confirmation instructions
.login-box.panel.panel-default
.panel-heading
%h3.panel-title Resend confirmation instructions
.panel-body
= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
.devise-errors
= devise_error_messages!
......@@ -7,9 +9,5 @@
= f.email_field :email, placeholder: 'Email', class: "form-control", required: true
.clearfix.append-bottom-10
= f.submit "Resend confirmation instructions", class: 'btn btn-success'
%hr
%p
%span.light
Already have login and password?
%strong
= link_to "Sign in", new_session_path(resource_name)
.panel-footer
= render 'devise/shared/sign_in_link'
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: "login-box" }) do |f|
%h3 Change your password
.login-box.panel.panel-default
.panel-heading
%h3.panel-title Change your password
.panel-body
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
.devise-errors
= devise_error_messages!
= f.hidden_field :reset_password_token
......@@ -7,9 +10,9 @@
= f.password_field :password, class: "form-control top", placeholder: "New password", required: true
%div
= f.password_field :password_confirmation, class: "form-control bottom", placeholder: "Confirm new password", required: true
%div
.clearfix.append-bottom-10
= f.submit "Change my password", class: "btn btn-primary"
= link_to "Sign in", new_session_path(resource_name), class: "btn pull-right"
%div
.panel-footer
%p
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
= render 'devise/shared/sign_in_link'
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { class: "login-box", method: :post }) do |f|
%h3.page-title Reset password
.login-box.panel.panel-default
.panel-heading
%h3.panel-title Reset password
.panel-body
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
.devise-errors
= devise_error_messages!
.clearfix.append-bottom-20
= f.email_field :email, placeholder: "Email", class: "form-control", required: true
.clearfix.append-bottom-10
= f.submit "Reset password", class: "btn-primary btn"
%hr
%p
%span.light
Already have login and password?
%strong
= link_to "Sign in", new_session_path(resource_name)
.panel-footer
= render 'devise/shared/sign_in_link'
= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "login-box" }) do |f|
%h3.page-title Sign Up
.login-box.panel.panel-success
.panel-heading
%h3.panel-title Sign up
.panel-body
= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f|
.devise-errors
= devise_error_messages!
%div
......@@ -14,7 +17,7 @@
= f.password_field :password_confirmation, class: "form-control bottom", placeholder: "Confirm password", required: true
%div
= f.submit "Sign up", class: "btn-create btn"
%hr
.panel-footer
%p
%span.light
Have an account?
......
......@@ -8,7 +8,7 @@
%span Remember me
%div
= hidden_field_tag 'return_to', params[:return_to]
= f.submit "Sign in", class: "btn-create btn"
= f.submit "Sign in", class: "btn-save btn"
.pull-right
= link_to "Forgot your password?", new_password_path(resource_name), class: "btn"
......@@ -2,4 +2,4 @@
= text_field_tag :username, nil, {class: "form-control top", placeholder: "LDAP Login", autofocus: "autofocus"}
= password_field_tag :password, nil, {class: "form-control bottom", placeholder: "Password"}
%br/
= submit_tag "LDAP Sign in", class: "btn-create btn"
= submit_tag "LDAP Sign in", class: "btn-save btn"
.login-box
%h3.page-title Sign in
.login-box.panel.panel-primary
.panel-heading
%h3.panel-title Sign in
.panel-body
- if ldap_enabled? && gitlab_config.signin_enabled
%ul.nav.nav-tabs
%li.active
......@@ -14,18 +16,15 @@
- elsif ldap_enabled?
= render partial: 'devise/sessions/new_ldap'
- elsif gitlab_config.signin_enabled
= render partial: 'devise/sessions/new_base'
- else
%div
No authentication methods configured.
= render 'devise/sessions/oauth_providers' if Gitlab.config.omniauth.enabled && devise_mapping.omniauthable?
%hr
.panel-footer
- if gitlab_config.signup_enabled
%p
%span.light
......
%p
%span.light
Already have login and password?
%strong
= link_to "Sign in", new_session_path(resource_name)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment