blob: a97e65876c8f09f0f8e5a8dd953a085df15b059a [file] [log] [blame]
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05301{% block title %} {{ "Shopping Cart" }} {% endblock %}
2
Rushabh Mehtafc3d8712015-07-10 10:11:07 +05303{% block header %}<h2>{{ _("My Cart") }}</h2>{% endblock %}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05304
5{% block script %}{% include "templates/includes/cart.js" %}{% endblock %}
Rushabh Mehta156ce602015-09-11 18:49:59 +05306{% block style %}{% include "templates/includes/cart.css" %}{% endblock %}
Rushabh Mehta3daa49a2014-10-21 16:16:30 +05307
Rushabh Mehta3d766862015-09-16 18:52:52 +05308
9{% block header_actions %}
10{% if doc.items %}
11<button class="btn btn-primary btn-place-order btn-sm"
12 type="button">
13 {{ _("Place Order") }}</button>
14{% endif %}
15{% endblock %}
16
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053017{% block content %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053018
Rushabh Mehta3d766862015-09-16 18:52:52 +053019{% from "templates/includes/macros.html" import item_name_and_description %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053020
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053021<div class="cart-content">
Rushabh Mehta156ce602015-09-11 18:49:59 +053022 <div id="cart-container">
Rushabh Mehta3d766862015-09-16 18:52:52 +053023 <div id="cart-error" class="alert alert-danger"
24 style="display: none;"></div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053025 <div id="cart-items">
Rushabh Mehta3d766862015-09-16 18:52:52 +053026 <div class="row cart-item-header">
27 <div class="col-sm-8 col-xs-6">
28 Items
29 </div>
30 <div class="col-sm-2 col-xs-3 text-right">
31 Qty
32 </div>
33 <div class="col-sm-2 col-xs-3 text-right">
34 Amount
35 </div>
36 </div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053037 {% if doc.items %}
Rushabh Mehta8ffd4832015-09-17 16:28:30 +053038 <div class="cart-items">
39 {% include "templates/includes/cart/cart_items.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053040 </div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053041 {% else %}
42 <p>{{ _("Cart is Empty") }}</p>
43 {% endif %}
44 </div>
Rushabh Mehta3d766862015-09-16 18:52:52 +053045 {% if doc.items %}
46 <!-- taxes -->
47 <div class="cart-taxes row small">
48 <div class="col-sm-8"><!-- empty --></div>
Rushabh Mehta8ffd4832015-09-17 16:28:30 +053049 <div class="col-sm-4 cart-tax-items">
Rushabh Mehta3d766862015-09-16 18:52:52 +053050 {% include "templates/includes/order/order_taxes.html" %}
51 </div>
52 </div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053053 <div id="cart-totals">
54 </div>
Rushabh Mehta3d766862015-09-16 18:52:52 +053055 <div class="cart-addresses">
56 {% include "templates/includes/cart/cart_address.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053057 </div>
58 <p class="cart-footer text-right">
59 <button class="btn btn-primary btn-place-order btn-sm" type="button">
60 {{ _("Place Order") }}</button></p>
Rushabh Mehta3d766862015-09-16 18:52:52 +053061 {% endif %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053062 </div>
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053063</div>
64
65<!-- no-sidebar -->
66{% endblock %}