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/print_confirmation.html | 193 +++++++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100755 servo/templates/orders/print_confirmation.html (limited to 'servo/templates/orders/print_confirmation.html') diff --git a/servo/templates/orders/print_confirmation.html b/servo/templates/orders/print_confirmation.html new file mode 100755 index 0000000..0b0ca77 --- /dev/null +++ b/servo/templates/orders/print_confirmation.html @@ -0,0 +1,193 @@ +{% extends "default_print.html" %} +{% load servo_tags %} +{% load mptt_tags %} +{% load static %} +{% load i18n %} + +{% block content %} +{% with order.location as location %} +
+
+ {% if location.logo %} + logo + {% endif %} +
+
+ {{ location.title }}
+ {{ location.address }}
+ {{ location.zip_code }}, {{ location.city }}
+ {{ location.notes }} +
+
+ {% block location_info %} + {% endblock location_info %} + {% trans "Email Address" %}: {{ location.email }}
+ {% trans "Phone" %}: {{ location.phone }}

+ {% trans "Repair Number" %}: {{ order.code }}
+ {{ order.code }} +
+
+{% endwith %} +
+
+ {% trans "Date" %}: {% now "SHORT_DATE_FORMAT" %} +
+
+
+

{% block title %}{% trans "Work Confirmation" %} {{ order.code }}{% endblock title %}

+
+
+
+ + + + + + + + + + + + + {% if order.has_accessories %} + + {% endif %} + +
{% trans "Customer Information" %}{% trans "Product Information" %}
+ {% block customer_details %} + {{ order.customer.fullname }}
+ {% trans "Daytime Phone" %}: {{ order.customer.phone|default:"-" }}
+ {% trans "Email Address" %}: {{ order.customer.email|default:"-" }} + {% if order.customer.street_address %} +
+ {% trans "Address" %}: {{ order.customer.street_address }}
+ {{ order.customer.zip_code }} {{ order.customer.city }} + {% endif %} + {% endblock customer_details %} +
+ {% for device in order.get_devices %} + {% trans "Model" %}: {{ device.description }}
+ {% trans "Warranty Status" %}: {{ device.get_warranty_status_display }}
+ {% trans "Estimated Date of Purchase" %}: {{ device.purchased_on|default:"-" }}
+ {% if device.imei %} + {% trans "IMEI Number" %}: {{ device.imei }}
+ {% trans "Activation Policy" %}: {{ device.initial_activation_policy }}
+ {% endif %} + {% if device.sn %} + {% trans "Serial Number" %}: {{ device.sn }}
+ + {% endif %} + {% endfor %} +
{% trans "Accessories" %}: {{ order.get_accessories|join:", " }}
+
+
+
+
+ {% block work_description %} + {% if order.reported_notes.count > 0 %} +

{% trans "Work Description" %}

+ {% for n in order.reported_notes %} + {{ n.body|markdown }} + {% endfor %} + {% endif %} + {% endblock work_description %} +
+
+
+
+ {% block parts_and_services %} + {% if order.has_products %} +

{% trans "Products and Services" %}

+ + + + + + + + + + + + + + {% block list_products %} + {% for i in order.products %} + + + + + + + + + + + {% endfor %} + {% endblock list_products %} + + + + + + + + + + + + + +
{% trans "Product" %}{% trans "Warranty" %}{% trans "VAT %" %}{% trans "Qty" %}{% trans "0% VAT" %}{% trans "Price" %}{% trans "Total" %}
{{ i.code }}{{ i.title }}{% if i.sn %}
{% trans "SN" %}: {{ i.sn }} {% if i.imei %} + {% trans "IMEI" %}: {{ i.imei }}{% endif %}{% endif %}
{{ i.product.get_warranty_display|default:"" }}{{ i.product.pct_vat|floatformat:"0" }}%{{ i.amount }}{{ i.price_notax|currency }}{{ i.price|currency }}{{ i.total_gross|currency }}
{% trans "Total" %}:{% block order_total %}{{ order.gross_total|currency }}{% endblock order_total %}
+ {% endif %} + {% endblock parts_and_services %} +
+
+
+
+ {% block customer_pickup %} +

{% trans "Customer Pickup" %}

+ + + + + + + + + + + + + +
   
{% trans "Customer Name" %}{% trans "Signature" %}{% trans "Date" %}
+ {% endblock customer_pickup %} + {% block received_by %} +
{% trans "Received By" %}
+ + + + + + + + + + + + + +
{{ order.created_by.get_full_name }} {{ order.created_at|date:"SHORT_DATE_FORMAT" }}
{% trans "Name" %}{% trans "Signature" %}{% trans "Date" %}
+ {% endblock received_by %} +
+
+
+
+
+ {% block tos %}{{ conf.terms_of_service|markdown }}{% endblock tos %} + {% block footer %}{% endblock footer %} +
+
+{% endblock content %} -- cgit v1.2.3