AgPerry's picture
Add files using upload-large-folder tool
09a1836 verified
Raw History Blame Contribute Delete
1.3 kB
{% extends "base.html" %}
{% block title %}Checkout{% endblock %}
{% block content %}
<div class="Checkout_container">
<h1>Checkout</h1>
{% if error %}<p class="FormControl_error" role="alert">{{ error }}</p>{% endif %}
{% if cart.empty %}
<p>Your shopping bag is empty. <a href="/llb/shop/29">Keep shopping</a>.</p>
{% else %}
<p class="Checkout_sandbox">This clone uses the local sandbox payment profile. It never
accepts a card number, and no real payment is made.</p>
<form method="post" action="/checkout">
<label class="FormControl_label">Last Name<input class="FormControl_input" name="last_name" required></label>
<label class="FormControl_label">Billing Zip/Postal Code<input class="FormControl_input" name="postal" required></label>
<label class="FormControl_label">Sandbox scenario
<select class="FormControl_input" name="scenario">
<option value="approved">Approved</option>
<option value="declined">Declined</option>
</select>
</label>
<p class="OrderSummary_row OrderSummary_total"><span>Est. Total:</span><span>${{ '%.2f'|format(cart.total) }}</span></p>
<button class="Button_buttonComponent Button_transactional Button_large" type="submit">Place Order</button>
</form>
{% endif %}
</div>
{% endblock %}