Restyle the Sessions#new view

This commit is contained in:
Petko Bordjukov 2015-04-20 16:42:42 +03:00
parent 772f569351
commit 21b1ae75bb
2 changed files with 26 additions and 10 deletions

View File

@ -1,3 +1,16 @@
.centered_form {
@extend .col-md-4;
@extend .col-md-offset-4;
@extend .col-sm-6;
@extend .col-sm-offset-3;
input[type=submit] {
@extend .btn;
@extend .btn-primary;
@extend .btn-block;
}
}
select.date, select.datetime, select.time {
display: inline;
width: auto;

View File

@ -1,14 +1,17 @@
- content_for(:title) { t 'sessions.sign_in' }
h2.entry-title = t :login
.row
.centered_form
= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
header
legend
h2.entry-title = t 'sessions.sign_in_heading'
.form-inputs
= f.input :email, required: false, autofocus: true, hint: false
= f.input :password, required: false, hint: false
= f.input :remember_me, as: :boolean if devise_mapping.rememberable?
= simple_form_for(resource, as: resource_name, url: session_path(resource_name), ) do |f|
.form-inputs
= f.input :email, required: false, autofocus: true, hint: false
= f.input :password, required: false, hint: false
= f.input :remember_me, as: :boolean if devise_mapping.rememberable?
.form-actions
= f.button :submit, t('sessions.sign_in')
.form-actions
= f.button :submit, t('sessions.sign_in')
== render 'devise/shared/links'
= render 'devise/shared/links'