From 63b0fc6269b38edf7234b9f151b80d81f614c0a3 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 4 Aug 2015 10:11:24 +0300 Subject: Initial commit First public commit --- servo/templates/orders/products.html | 98 ++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100755 servo/templates/orders/products.html (limited to 'servo/templates/orders/products.html') diff --git a/servo/templates/orders/products.html b/servo/templates/orders/products.html new file mode 100755 index 0000000..4476ae8 --- /dev/null +++ b/servo/templates/orders/products.html @@ -0,0 +1,98 @@ +{% load i18n %} +{% load servo_tags %} + +{% with order.serviceorderitem_set.all as products %} + + {% if products.count %} + + + + + + + + + + + + {% endif %} + + {% for item in products %} + {% with item.product as product %} + + + + + + + + + + {% endwith %} + {% empty %} +
+

{% trans "Order doesn't contain any products." %}

+
+ {% endfor %} + +
{% trans "Product" %}{% trans "Amount" %}{% trans "Price Category" %}{% trans "Price" %}{% trans "Total" %}
{{ product }} + {{ product.code }}
+
{{ item.title }}
+ {% if item.sn or item.kbb_sn %} +

{% trans "Serial Number" %}: {{ item.sn }}{% if item.kbb_sn %}, KBB: {{ item.kbb_sn }}{% endif %}

+ {% endif %} + {% if product.is_apple_part %} + {% for repair in order.get_repairs %} +
+ + {{ repair.confirmation }} + + {% if item in repair.get_products %} + {% with item.get_part as part %} + {% include "repairs/part_menu.html" %} + {% endwith %} + {% else %} + + {% endif %} +
+ {% endfor %} + {% endif %} +
{{ item.amount }}{{ item.get_price_category_display }}{{ item.price|currency }}{{ item.total_gross|currency }} + {% if order.is_editable %} +
+ {% if item.should_report %} + + {% else %} + + {% endif %} +
+
+ + + + +
+ {% endif %} +
+ {% trans "Add Product" %} +{% endwith %} +

+


+ {% if order.serviceorderitem_set.count %} +

{% trans "Order Total" %}: {{ order.gross_total|currency }}

+ {% endif %} +

-- cgit v1.2.3