Updated layout of ichain sign in page

This commit is contained in:
jmks 2016-07-28 14:21:38 -04:00
parent 96155eb87f
commit 00ff197658
3 changed files with 43 additions and 0 deletions

View 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'

View 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'

View file

@ -9,3 +9,7 @@
- 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)
%br
- if devise_mapping.ichain_registerable?
= link_to "Sign up", new_ichain_registration_path(resource_name)
%br