69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
{% block title %} {{ "Shopping Cart" }} {% endblock %}
|
|
|
|
{% block header %}<h2>{{ _("My Cart") }}</h2>{% endblock %}
|
|
|
|
{% block script %}{% include "templates/includes/cart.js" %}{% endblock %}
|
|
{% block style %}{% include "templates/includes/cart.css" %}{% endblock %}
|
|
|
|
|
|
{% block header_actions %}
|
|
{% if doc.items %}
|
|
<button class="btn btn-primary btn-place-order btn-sm"
|
|
type="button">
|
|
{{ _("Place Order") }}</button>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
{% from "templates/includes/macros.html" import item_name_and_description %}
|
|
|
|
<div class="cart-content">
|
|
<div id="cart-container">
|
|
<div id="cart-error" class="alert alert-danger"
|
|
style="display: none;"></div>
|
|
<div id="cart-items">
|
|
<div class="row cart-item-header">
|
|
<div class="col-sm-8 col-xs-6">
|
|
Items
|
|
</div>
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
|
Qty
|
|
</div>
|
|
<div class="col-sm-2 col-xs-3 text-right">
|
|
Amount
|
|
</div>
|
|
</div>
|
|
{% if doc.items %}
|
|
{% for d in doc.items %}
|
|
<div class="cart-item">
|
|
{% include "templates/includes/cart/cart_item_line.html" %}
|
|
</div>
|
|
{% endfor %}
|
|
{% else %}
|
|
<p>{{ _("Cart is Empty") }}</p>
|
|
{% endif %}
|
|
</div>
|
|
{% if doc.items %}
|
|
<!-- taxes -->
|
|
<div class="cart-taxes row small">
|
|
<div class="col-sm-8"><!-- empty --></div>
|
|
<div class="col-sm-4">
|
|
{% include "templates/includes/order/order_taxes.html" %}
|
|
</div>
|
|
</div>
|
|
<div id="cart-totals">
|
|
</div>
|
|
<div class="cart-addresses">
|
|
{% include "templates/includes/cart/cart_address.html" %}
|
|
</div>
|
|
<p class="cart-footer text-right">
|
|
<button class="btn btn-primary btn-place-order btn-sm" type="button">
|
|
{{ _("Place Order") }}</button></p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- no-sidebar -->
|
|
{% endblock %}
|