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,14 +1,17 @@
|
||||||
- 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|
|
||||||
|
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-actions
|
||||||
.form-inputs
|
= f.button :submit, t('sessions.sign_in')
|
||||||
= 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
|
= render 'devise/shared/links'
|
||||||
= f.button :submit, t('sessions.sign_in')
|
|
||||||
|
|
||||||
== render 'devise/shared/links'
|
|
||||||
|
|
Loading…
Reference in New Issue