forked from armandofox/audience1st
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor new session view into two partials
- Loading branch information
Showing
6 changed files
with
49 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
= form_tag session_path, :class => 'form' do | ||
.card | ||
.card-header.text-center | ||
%h3 | ||
= head | ||
.card-body | ||
.row | ||
.col-md-2.text-right | ||
%label.col-form-label{:for=>:customer_email} Email | ||
.col-md-6 | ||
= text_field_tag 'email', @email, :class => 'form-control' | ||
.col-md-4 | ||
.row | ||
.col-md-2.text-right | ||
%label.col-form-label{:for=>:customer_password} Password | ||
.col-md-6 | ||
= password_field_tag 'password', nil, :autocomplete => 'off', :class => 'form-control' | ||
.col-md-4 | ||
= submit_tag 'Login', :class => 'btn btn-success', :disable_with => 'Logging in...' | ||
.row | ||
.col-md-2.text-right | ||
= check_box_tag 'remember_me', '1', @remember_me | ||
.col-md-10 | ||
Remember me for next time (Don't use on public/shared computers) | ||
.row | ||
Need to reset your password? | ||
= link_to 'Reset password by email', forgot_password_customers_path | ||
or | ||
= link_to 'Login with secret question', new_from_secret_session_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.card | ||
.card-header.text-center | ||
%h3 New Customers | ||
.card-body.text-center | ||
- if @gOrderInProgress | ||
- if @display_guest_checkout | ||
.row.p-2= link_to "Checkout as Guest", guest_checkout_customers_path, :class => 'btn btn-primary btn-block' | ||
.row.p-2= link_to "Create Account", new_customer_path, :class => 'btn btn-primary btn-block' | ||
- else | ||
.row.p-2= link_to_if_option_text :homepage_ticket_sales_text, store_path, {:class => 'btn btn-primary btn-block'} | ||
.row.p-2= link_to_if_option_text :homepage_subscription_sales_text, store_subscribe_path, {:class => 'btn btn-primary btn-block'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters