Restyle the Sessions#new view
This commit is contained in:
parent
772f569351
commit
21b1ae75bb
@ -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 {
|
select.date, select.datetime, select.time {
|
||||||
display: inline;
|
display: inline;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
- content_for(:title) { t 'sessions.sign_in' }
|
- 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|
|
= 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
|
.form-inputs
|
||||||
= f.input :email, required: false, autofocus: true, hint: false
|
= f.input :email, required: false, autofocus: true, hint: false
|
||||||
= f.input :password, required: false, hint: false
|
= f.input :password, required: false, hint: false
|
||||||
@ -11,4 +14,4 @@ h2.entry-title = t :login
|
|||||||
.form-actions
|
.form-actions
|
||||||
= f.button :submit, t('sessions.sign_in')
|
= f.button :submit, t('sessions.sign_in')
|
||||||
|
|
||||||
== render 'devise/shared/links'
|
= render 'devise/shared/links'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user