checkout.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <main class="x xdc md-xdr md-xw">
  4. <header class="w100 copy-h tac">
  5. <h1>Cart</h1>
  6. </header>
  7. {% if not data.checkout_items %}
  8. <section class="w100 pt4-25 pr0-85 pb4-25 pl0-85 copy">
  9. <div class="mw-680px mla mra">
  10. <p>Your cart is empty.</p>
  11. </div>
  12. </section>
  13. {% else %}
  14. <section class="checkout-table-header w100 pt4-25">
  15. {% for item in data.checkout_items %}
  16. {% include "partials/checkout-item.html" %}
  17. {% endfor %}
  18. </section>
  19. {% if data.show_checkout %}
  20. <form class="checkout-shipping-info w100 pt4-25" method="POST">
  21. <input type="hidden" id="order_id" name="order_id" value="{{ cart.meta.order_id }}">
  22. {% for item in data.checkout_items %}
  23. <input type="hidden" id="weight" name="weight" value="{{ item.weight }}">
  24. {% endfor %}
  25. <section class="w100 bdb-dark-red pr0-85 pb4-25 pl0-85">
  26. {% include "partials/form-subtotal.html" %}
  27. </section>
  28. <section class="w100 pt4-25 pr0-85 pb4-25 pl0-85 bdb-dark-red">
  29. <div class="mw-680px mla mra">
  30. <h4 class="ff-sans fs-huge ttu pb4-75">Shipping Information</h4>
  31. {% include "partials/form-shipping-info.html" %}
  32. </div>
  33. </section>
  34. <section class="w100 pt4-25 pr0-85 pb5-5 pl0-85 bdb-dark-red">
  35. {% include "partials/form-total.html" %}
  36. </section>
  37. <section class="x xdr xw xjsb xaic w100 pt4-25 pr0-85 pb4-25 pl0-85 bdb-gray">
  38. <div class="mw-680px mla mra">
  39. <div class="w100 x xdc tn-xdr xjsb sm-xaic pt1 pb1">
  40. <h4 class="ff-sans fs-large sm-fs-huge ttu pb2">Checkout</h4>
  41. {% include "partials/form-payment-options.html" %}
  42. </div>
  43. <div class="copy-checkout-disclaimer w100 pt3-5">
  44. {% for block in data.doc.blocks %}
  45. {% if block.type == 'text' %}
  46. {{ block.value | md | safe }}
  47. {% endif %}
  48. {% endfor %}
  49. </div>
  50. </div>
  51. </section>
  52. <input type="hidden" name="csrftoken" value="{{ request.scope.csrftoken() }}">
  53. </form>
  54. {% else %}
  55. <form class="w100 pt4-25 pr0-85 pb4-25 pl0-85 bdb-dark-red" action="/cart/clear" method="POST">
  56. <div class="mw-680px mla mra">
  57. <h4 class="ff-sans fs-large sm-fs-huge pb2">Do you want to clear you cart?</h4>
  58. <button type="submit" class="fs-small btn-checkout-remove bd-deep-brown fgc-terre bgc-gaow">Clear Cart</button>
  59. <input type="hidden" name="csrftoken" value="{{ request.scope.csrftoken() }}">
  60. </div>
  61. </form>
  62. {% endif %}
  63. <div class="checkout-empty-message dn w100 bdb-dark-red pt4-25 pr0-85 pb4-25 pl0-85 copy">
  64. <div class="mw-680px mla mra">
  65. <p>Your cart is empty.</p>
  66. </div>
  67. </div>
  68. {% endif %}
  69. </main>
  70. {% with hide_menu=True, custom_border=not data.checkout_items %}
  71. {% include "partials/footer.html" %}
  72. {% endwith %}
  73. {% endblock %}