Add bootstrap styling to sign in form
Add class `.form-control` to inputs and remove additional width styling
This commit is contained in:
parent
d9a3b0de72
commit
f9d8c9715c
2 changed files with 4 additions and 12 deletions
|
|
@ -20,14 +20,6 @@
|
||||||
color: black;
|
color: black;
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
}
|
}
|
||||||
input[type=text],
|
|
||||||
input[type=password] {
|
|
||||||
text-align: center;
|
|
||||||
padding: 5px;
|
|
||||||
display: block;
|
|
||||||
margin: auto;
|
|
||||||
width: 255px;
|
|
||||||
}
|
|
||||||
.btn-group {
|
.btn-group {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
||||||
|
|
@ -60,13 +60,13 @@
|
||||||
.dropdown-menu
|
.dropdown-menu
|
||||||
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
- if ENV['OSEM_ICHAIN_ENABLED'] == 'true'
|
||||||
= form_tag User.ichain_login_url do
|
= form_tag User.ichain_login_url do
|
||||||
= text_field_tag 'username', nil, id: 'user_ichain_email_dd', placeholder: 'Username'
|
= text_field_tag 'username', nil, id: 'user_ichain_email_dd', class: 'form-control', placeholder: 'Username'
|
||||||
= password_field_tag 'password', nil, id: 'user_ichain_password_dd', placeholder: 'Password'
|
= password_field_tag 'password', nil, id: 'user_ichain_password_dd', class: 'form-control', placeholder: 'Password'
|
||||||
%button.btn.btn-success.btn-block Sign in
|
%button.btn.btn-success.btn-block Sign in
|
||||||
- else
|
- else
|
||||||
= form_tag new_user_session_path do
|
= form_tag new_user_session_path do
|
||||||
= text_field_tag 'user[login]', nil, id: 'user_login_dd', placeholder: 'Username / E-Mail'
|
= text_field_tag 'user[login]', nil, id: 'user_login_dd', class: 'form-control', placeholder: 'Username / E-Mail'
|
||||||
= password_field_tag 'user[password]', nil, id: 'user_password_dd', placeholder: 'Password'
|
= password_field_tag 'user[password]', nil, id: 'user_password_dd', class: 'form-control', placeholder: 'Password'
|
||||||
%p.text-right
|
%p.text-right
|
||||||
%small
|
%small
|
||||||
%label{for: 'user_remember_me'} Remember me
|
%label{for: 'user_remember_me'} Remember me
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue