File size: 1,297 Bytes
06cfa3d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{% 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 %}