expressCart/views/themes/Cloth/checkout-information.hbs

83 lines
4.5 KiB
Handlebars
Raw Normal View History

2018-01-07 04:55:48 +10:00
<div class="col-xl-8 col-xl-offset-2 col-xs-12">
2019-06-15 21:23:31 +10:00
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Home</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href="/checkout/information">Information</a></li>
{{#if @root.session.customerPresent}}
<li class="breadcrumb-item" aria-current="page"><a href="/checkout/shipping">Shipping</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="/checkout/payment">Payment</a></li>
{{else}}
<li class="breadcrumb-item text-muted" aria-current="page">Shipping</li>
<li class="breadcrumb-item text-muted" aria-current="page">Payment</li>
{{/if}}
2019-06-15 21:23:31 +10:00
</ol>
</nav>
2018-01-07 04:55:48 +10:00
<div class="row">
{{#if paymentMessage}}
<p class="text-danger text-center">{{paymentMessage}}</p>
{{/if}}
<div class="col-md-5">
<div class="panel panel-default" style="margin-top: 30px;">
<div class="panel-heading">{{ @root.__ "Customer details" }}</div>
{{#unless @root.session.customerPresent}}
2018-01-22 07:20:33 +10:00
<div class="panel-body customer-details-login">
<p>{{ @root.__ "Existing customer" }}</p>
2018-01-22 07:20:33 +10:00
<div class="form-group">
<input type="email" class="form-control" id="customerLoginEmail" name="loginEmail" minlength="5" placeholder="Email address" required>
</div>
<div class="form-group">
<input type="password" class="form-control" id="customerLoginPassword" name="loginPassword" minlength="5" placeholder="Password" required>
</div>
<div class="form-group">
<a href="/customer/forgotten" class="btn btn-default pull-left">{{ @root.__ "Forgotten" }}</a>
2018-01-22 07:20:33 +10:00
</div>
<div class="form-group">
<button id="customerLogin" class="btn btn-primary pull-right" type="submit">Login</button>
2018-01-22 07:20:33 +10:00
</div>
</div>
{{/unless}}
2018-01-07 04:55:48 +10:00
<div class="panel-body customer-details">
{{#if @root.session.customerPresent}}
2018-01-22 07:20:33 +10:00
<div class="col-xs-12 col-md-12">
<button id="customerLogout" class="btn btn-sm btn-primary pull-right">{{ @root.__ "Change customer" }}</button>
2018-01-22 07:20:33 +10:00
</div>
{{/if}}
<form id="shipping-form" class="shipping-form" role="form" data-toggle="validator" novalidate="false">
2019-12-19 14:34:48 +10:00
{{> themes/Cloth/shipping-form}}
{{#unless @root.session.customerPresent}}
2018-01-22 07:20:33 +10:00
<div class="col-xs-12 col-md-12">
<p class="text-muted">{{ @root.__ "Enter a password to create an account for next time" }}</p>
</div>
<div class="col-xs-6 col-md-6">
2018-01-22 07:20:33 +10:00
<div class="form-group">
<input type="password" class="form-control customerDetails" id="newCustomerPassword" name="newCustomerPassword" placeholder="Password">
</div>
</div>
<div class="col-xs-6 col-md-6">
<div class="checkbox">
<label>
<input type="checkbox" id="createAccountCheckbox"> Create an account
</label>
2018-01-22 07:20:33 +10:00
</div>
</div>
{{/unless}}
<div class="col-xs-12 col-md-12">
<a href="/checkout/cart" class="btn btn-primary pull-left">Return to cart</a>
<a href="/checkout/shipping" id="checkoutInformation" class="btn btn-primary pull-right">Continue to shipping</a>
</div>
2018-01-07 04:55:48 +10:00
</form>
</div>
</div>
</div>
<div id="cart" class="col-md-7">
2018-02-14 06:21:22 +10:00
{{> (getTheme 'cart')}}
<div class="row">
{{#if @root.session.cart}}
<div class="col-xs-12 col s12">
<button class="btn btn-danger pull-right" id="empty-cart" type="button">{{ @root.__ "Empty cart" }}</button>
</div>
{{/if}}
</div>
2018-01-07 04:55:48 +10:00
</div>
</div>
</div>