Merge pull request #1110 from jmks/ichain-signin-page-layout
Updated layout of ichain sign in page
This commit is contained in:
commit
10121ae6d0
3 changed files with 43 additions and 0 deletions
20
app/views/devise/ichain_sessions/new.html.haml
Normal file
20
app/views/devise/ichain_sessions/new.html.haml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
.container
|
||||||
|
.row
|
||||||
|
.col-md-6.col-md-offset-3
|
||||||
|
.panel.panel-default
|
||||||
|
.panel-heading
|
||||||
|
%h3.panel-title
|
||||||
|
Sign in
|
||||||
|
.panel-body
|
||||||
|
= semantic_form_for '', method: :post, enctype: 'application/x-www-form-urlencoded', url: @login_url do |f|
|
||||||
|
= f.input :url, as: :hidden, input_html: { value: @back_url }
|
||||||
|
= f.input :context, as: :hidden, input_html: { value: @context }
|
||||||
|
= f.input :proxypath, as: :hidden, input_html: { value: @proxypath }
|
||||||
|
|
||||||
|
= f.input :username, input_html: { autofocus: true }
|
||||||
|
= f.input :password, as: :password
|
||||||
|
|
||||||
|
%p.text-right
|
||||||
|
= f.action :submit, as: :button, label: 'Sign In', button_html: { class: 'btn btn-success' }
|
||||||
|
|
||||||
|
= render partial: 'devise/shared/help'
|
||||||
19
app/views/devise/ichain_sessions/new_test.html.haml
Normal file
19
app/views/devise/ichain_sessions/new_test.html.haml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
.container
|
||||||
|
.row
|
||||||
|
.col-md-6.col-md-offset-3
|
||||||
|
.panel.panel-default
|
||||||
|
.panel-heading
|
||||||
|
%h3.panel-title
|
||||||
|
Sign in (TEST MODE)
|
||||||
|
.panel-body
|
||||||
|
= semantic_form_for "", method: :post, enctype: 'application/x-www-form-urlencoded', url: @login_url do |f|
|
||||||
|
= f.input :username, input_html: { autofocus: true }
|
||||||
|
|
||||||
|
- if ::Devise.ichain_force_test_attributes.blank?
|
||||||
|
- @fields.each do |field|
|
||||||
|
= f.input "attributes[#{field}]", label: field.to_s.humanize
|
||||||
|
|
||||||
|
%p.text-right
|
||||||
|
= f.action :submit, as: :button, label: 'Sign In', button_html: { class: 'btn btn-success' }
|
||||||
|
|
||||||
|
= render partial: 'devise/shared/help'
|
||||||
|
|
@ -9,3 +9,7 @@
|
||||||
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
||||||
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
||||||
%br
|
%br
|
||||||
|
|
||||||
|
- if devise_mapping.ichain_registerable?
|
||||||
|
= link_to "Sign up", new_ichain_registration_path(resource_name)
|
||||||
|
%br
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue