blob: 837df3b056c738016c96adbe7108a809eac4f1a8 [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 %}
38 {% for d in doc.items %}
39 <div class="cart-item">
Rushabh Mehta3d766862015-09-16 18:52:52 +053040 {% include "templates/includes/cart/cart_item_line.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053041 </div>
42 {% endfor %}
43 {% else %}
44 <p>{{ _("Cart is Empty") }}</p>
45 {% endif %}
46 </div>
Rushabh Mehta3d766862015-09-16 18:52:52 +053047 {% if doc.items %}
48 <!-- taxes -->
49 <div class="cart-taxes row small">
50 <div class="col-sm-8"><!-- empty --></div>
51 <div class="col-sm-4">
52 {% include "templates/includes/order/order_taxes.html" %}
53 </div>
54 </div>
Rushabh Mehta156ce602015-09-11 18:49:59 +053055 <div id="cart-totals">
56 </div>
Rushabh Mehta3d766862015-09-16 18:52:52 +053057 <div class="cart-addresses">
58 {% include "templates/includes/cart/cart_address.html" %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053059 </div>
60 <p class="cart-footer text-right">
61 <button class="btn btn-primary btn-place-order btn-sm" type="button">
62 {{ _("Place Order") }}</button></p>
Rushabh Mehta3d766862015-09-16 18:52:52 +053063 {% endif %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053064 </div>
Rushabh Mehta3daa49a2014-10-21 16:16:30 +053065</div>
66
67<!-- no-sidebar -->
68{% endblock %}