2014-10-21 10:46:30 +00:00
|
|
|
{% block title %} {{ "Shopping Cart" }} {% endblock %}
|
|
|
|
|
2015-07-10 04:41:07 +00:00
|
|
|
{% block header %}<h2>{{ _("My Cart") }}</h2>{% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
|
|
|
{% block script %}{% include "templates/includes/cart.js" %}{% endblock %}
|
2015-09-11 13:19:59 +00:00
|
|
|
{% block style %}{% include "templates/includes/cart.css" %}{% endblock %}
|
2014-10-21 10:46:30 +00:00
|
|
|
|
|
|
|
{% block content %}
|
2015-09-11 13:19:59 +00:00
|
|
|
|
|
|
|
{% from "erpnext/templates/includes/macros.html" import item_name_and_description %}
|
|
|
|
|
2014-10-21 10:46:30 +00:00
|
|
|
<div class="cart-content">
|
2015-09-11 13:19:59 +00:00
|
|
|
<p class="text-muted loading">{{ _("Loading") }}...</p>
|
|
|
|
<div id="cart-container">
|
|
|
|
<div class="cart-header">
|
|
|
|
<p class="pull-right"><button class="btn btn-primary btn-place-order btn-sm" type="button">
|
|
|
|
{{ _("Place Order") }}</button></p>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
</div>
|
2014-10-21 10:46:30 +00:00
|
|
|
<div id="cart-error" class="alert alert-danger" style="display: none;"></div>
|
2015-09-11 13:19:59 +00:00
|
|
|
<div id="cart-items">
|
|
|
|
{% if doc.items %}
|
|
|
|
{% for d in doc.items %}
|
|
|
|
<div class="cart-item">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8 col-xs-6">
|
|
|
|
{{ item_name_and_description(d) }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4 col-xs-6 text-right">
|
|
|
|
<div class="item-update-cart">
|
|
|
|
<div class="clearfix">
|
|
|
|
<input type="text" placeholder="Qty"
|
|
|
|
style="max-width: 60px"
|
|
|
|
value="{{ d.qty }}"
|
|
|
|
data-item-code="{{ d.item_code }}"
|
|
|
|
class="text-right form-control pull-right">
|
|
|
|
</div>
|
|
|
|
<div class="text-right">
|
|
|
|
<button class="btn btn-default btn-sm"
|
|
|
|
data-item-code="{{ d.item_code }}">
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="text-muted small" style="margin-top: 10px;">
|
|
|
|
{{ _("Rate") + ': ' + d.get_formatted("rate") }}
|
|
|
|
</p>
|
|
|
|
<small style="margin-top: 10px;">
|
|
|
|
{{ d.get_formatted("amount") }}</small>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<p>{{ _("Cart is Empty") }}</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div id="cart-taxes">
|
|
|
|
</div>
|
|
|
|
<div id="cart-totals">
|
|
|
|
</div>
|
|
|
|
<div id="cart-addresses">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h4>{{ _("Shipping Address") }}</h4>
|
|
|
|
<div id="cart-shipping-address" class="panel-group"
|
|
|
|
data-fieldname="shipping_address_name"></div>
|
|
|
|
<button class="btn btn-default btn-sm" type="button" id="cart-add-shipping-address">
|
|
|
|
{{ _("Manage Addresses") }}</button>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<h4>Billing Address</h4>
|
|
|
|
<div id="cart-billing-address" class="panel-group"
|
|
|
|
data-fieldname="customer_address"></div>
|
|
|
|
<button class="btn btn-default btn-sm" type="button" id="cart-add-billing-address">
|
|
|
|
{{ _("Manage Addresses") }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p class="cart-footer text-right">
|
|
|
|
<button class="btn btn-primary btn-place-order btn-sm" type="button">
|
|
|
|
{{ _("Place Order") }}</button></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-10-21 10:46:30 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- no-sidebar -->
|
|
|
|
{% endblock %}
|