Two-column layout for login form
This commit is contained in:
parent
b7cc7ef4c0
commit
51be4a4777
1 changed files with 13 additions and 11 deletions
|
|
@ -14,11 +14,9 @@
|
||||||
' You can then moderate pending uploads or upload your own screenshots.
|
' You can then moderate pending uploads or upload your own screenshots.
|
||||||
' THIS IS AN ALPHA FEATURE AND WILL NOT WORK PROPERLY YET!
|
' THIS IS AN ALPHA FEATURE AND WILL NOT WORK PROPERLY YET!
|
||||||
|
|
||||||
.grid-container
|
/ .grid-container
|
||||||
.text-center
|
/ .text-center
|
||||||
|
|
||||||
p
|
|
||||||
= link_to (fa_icon 'key', text: 'Login via Salsa'), user_salsa_omniauth_authorize_path, class: 'button primary large', method: :post
|
|
||||||
|
|
||||||
/ // Alternative way to display buttons without images. (Amazon wants their own button though.)
|
/ // Alternative way to display buttons without images. (Amazon wants their own button though.)
|
||||||
/ / p
|
/ / p
|
||||||
|
|
@ -38,18 +36,22 @@
|
||||||
/ = link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
|
/ = link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
|
||||||
= f.hidden_field :provider, value: 'local'
|
= f.hidden_field :provider, value: 'local'
|
||||||
|
|
||||||
.grid-x.grid-padding-x.align-center
|
.grid-x.grid-padding-x.align-center
|
||||||
.cell.small-4
|
.cell.small-4
|
||||||
h4.text-center Moderators
|
h4.text-center Debian staff login
|
||||||
label for="sign-in-form-username" Login
|
p.text-center
|
||||||
= f.email_field :email, autofocus: true, placeholder: 'email address', class: 'sign-in-form-username'
|
= link_to (fa_icon 'key', text: 'Login via Salsa'), user_salsa_omniauth_authorize_path, class: 'button primary large', method: :post
|
||||||
label for="sign-in-form-password" Password
|
.cell.small-4
|
||||||
= f.password_field :password, autocomplete: "off", placeholder: 'password', class: 'sign-in-form-password'
|
h4.text-center Admin login
|
||||||
= f.submit "Sign in", class: 'button'
|
p.text-center
|
||||||
|
= f.email_field :email, autofocus: true, placeholder: 'email address', class: 'sign-in-form-username'
|
||||||
|
= f.password_field :password, autocomplete: "off", placeholder: 'password', class: 'sign-in-form-password'
|
||||||
|
= f.submit "Sign in", class: 'button'
|
||||||
|
|
||||||
|
|
||||||
/ - if devise_mapping.rememberable?
|
/ - if devise_mapping.rememberable?
|
||||||
/ .small-6.cell
|
/ .small-6.cell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue