2018-02-17 23:30:28 +10:00
|
|
|
<div class="col xl10 offset-xl1 s12">
|
|
|
|
<div class="row">
|
|
|
|
{{#if paymentMessage}}
|
|
|
|
<p class="text-danger text-center">{{paymentMessage}}</p>
|
|
|
|
{{/if}}
|
|
|
|
<div class="col m4">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="row">
|
2019-11-06 18:31:25 +10:00
|
|
|
<span class="card-title">{{ @root.__ "Customer details" }}</span>
|
2018-02-17 23:30:28 +10:00
|
|
|
{{#unless session.customer}}
|
2019-11-06 18:31:25 +10:00
|
|
|
<p>{{ @root.__ "Existing customer" }}</p>
|
2018-02-17 23:30:28 +10:00
|
|
|
<div class="input-field col s12">
|
|
|
|
<input type="email" id="customerLoginEmail" name="loginEmail" minlength="5" placeholder="Email address" required>
|
|
|
|
</div>
|
|
|
|
<div class="input-field col s12">
|
|
|
|
<input type="password" class="form-control" id="customerLoginPassword" name="loginPassword" minlength="5" placeholder="Password" required>
|
|
|
|
</div>
|
|
|
|
<div class="input-field col s12 m6">
|
2019-11-06 18:31:25 +10:00
|
|
|
<a href="/customer/forgotten" class="btn waves-effect waves-light black pull-left">{{ @root.__ "Forgotten" }}</a>
|
2018-02-17 23:30:28 +10:00
|
|
|
</div>
|
|
|
|
<div class="input-field col s12 m6">
|
|
|
|
<button id="customerLogin" class="btn waves-effect waves-light black pull-right" type="submit">Login</button>
|
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{#if session.customer}}
|
|
|
|
<div class="col s12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<button id="customerLogout" class="btn waves-effect waves-light black pull-right">{{ @root.__ "Change customer" }}</button>
|
2018-02-17 23:30:28 +10:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2019-11-06 20:40:27 +10:00
|
|
|
<form id="shipping-form" class="shipping-form" action="/{{config.paymentGateway}}/checkout_action{{@root.paymentType}}" method="post" role="form" data-toggle="validator" novalidate="false">
|
2018-02-17 23:30:28 +10:00
|
|
|
{{> themes/Mono/shipping-form}}
|
|
|
|
{{#if session.customer}}
|
|
|
|
{{#ifCond config.paymentGateway '==' 'paypal'}}
|
2019-05-28 08:35:29 +10:00
|
|
|
{{> partials/payments/paypal}}
|
2018-02-17 23:30:28 +10:00
|
|
|
{{/ifCond}}
|
|
|
|
{{/if}}
|
|
|
|
{{#unless session.customer}}
|
|
|
|
<div class="col s12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<p class="text-muted">{{ @root.__ "Enter a password to create an account for next time" }}</p>
|
2018-02-17 23:30:28 +10:00
|
|
|
<div class="input-field col s12">
|
|
|
|
<input type="password" class="form-control customerDetails" id="newCustomerPassword" name="newCustomerPassword" placeholder="Password" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col s12">
|
2019-11-06 18:31:25 +10:00
|
|
|
<a id="createCustomerAccount" class="btn waves-effect waves-light black pull-right">{{ @root.__ "Create account" }}</a>
|
2018-02-17 23:30:28 +10:00
|
|
|
</div>
|
|
|
|
{{/unless}}
|
|
|
|
</form>
|
|
|
|
{{#if session.customer}}
|
|
|
|
{{#ifCond config.paymentGateway '==' 'stripe'}}
|
|
|
|
{{> partials/payments/stripe}}
|
|
|
|
{{/ifCond}}
|
|
|
|
{{#ifCond config.paymentGateway '==' 'authorizenet'}}
|
|
|
|
{{> partials/payments/authorizenet}}
|
|
|
|
{{/ifCond}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="cart" class="col-md-7 col m7 offset-m1">
|
|
|
|
{{> themes/Mono/cart}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-28 08:35:29 +10:00
|
|
|
</div>
|