aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/orders/list_products.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/orders/list_products.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/orders/list_products.html')
-rwxr-xr-xservo/templates/orders/list_products.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/servo/templates/orders/list_products.html b/servo/templates/orders/list_products.html
new file mode 100755
index 0000000..051c9fe
--- /dev/null
+++ b/servo/templates/orders/list_products.html
@@ -0,0 +1,22 @@
+{% load i18n %}
+{% load servo_tags %}
+
+<div id="products">
+ <ul class="unstyled" data-url="{% url 'orders-list_products' order.pk %}">
+ {% for p in order.products %}
+ <li>
+ <small><strong>{{ p.code }}</strong></small><small class="pull-right">{{ p.price|currency }}</small>
+ <br/>
+ <small class="muted">{{ p.title }} - {{ p.get_price_category_display }}</small><br/>
+ {% if p.kbb_sn %}
+ <i class="icon-barcode"></i> <a href="#" class="sn" title="{% trans 'Click to select EEE code' %}">{{ p.kbb_sn }}</a>
+ {% endif %}
+ </li>
+ {% empty %}
+ <li class="muted text-center" style="padding:10px">{% trans "No products added" %}</li>
+ {% endfor %}
+ </ul>
+ <hr/>
+ <strong>{% trans "Total" %}:</strong>
+ <span class="pull-right"><strong>{{ order.gross_total|currency }}</strong></span>
+</div>