From d131966430914e1a148f02666ccdb1c4e5bc530f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 19 May 2021 20:28:21 +0300 Subject: Update work authorization template --- servo/templates/orders/print_confirmation.html | 65 +++++++++++++++++++------- 1 file changed, 47 insertions(+), 18 deletions(-) diff --git a/servo/templates/orders/print_confirmation.html b/servo/templates/orders/print_confirmation.html index 7584ec9..b82cc70 100755 --- a/servo/templates/orders/print_confirmation.html +++ b/servo/templates/orders/print_confirmation.html @@ -21,20 +21,22 @@
{% block location_info %} {% endblock location_info %} - {% trans "Email Address" %}: {{ location.email }}
+ {% trans "Email" %}: {{ location.email }}
{% trans "Phone" %}: {{ location.phone }}

- {% trans "Repair Number" %}: {{ order.code }}
- {{ order.code }}
{% endwith %} +
+

{% block title %}{% trans "Work Authorization" %}{% endblock title %}

+
- {% trans "Date" %}: {% now "SHORT_DATE_FORMAT" %} + {% trans "Date" %}: {{ order.created_at|date:"SHORT_DATE_FORMAT" }} +
+
+ {{ order.code }}
+ {% trans "Repair ID" %}: {{ order.code }}
-
-
-

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

@@ -48,16 +50,16 @@ - {% block customer_details %} + {% block customer_details %} {{ order.customer.fullname }}
- {% trans "Daytime Phone" %}: {{ order.customer.phone|default:"-" }}
- {% trans "Email Address" %}: {{ order.customer.email|default:"-" }} + {% trans "Phone" %}: {{ order.customer.phone|default:"-" }}
+ {% trans "Email" %}: {{ 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 %} + {% endblock customer_details %} {% for device in order.get_devices %} @@ -86,10 +88,32 @@
{% block work_description %} {% if order.reported_notes.count > 0 %} -

{% trans "Work Description" %}

- {% for n in order.reported_notes %} - {{ n.body|markdown }} - {% endfor %} +

{% trans "Problem Description" %}

+
+

+ {%trans "Customer Reported Issue" %}: + {% for n in data.issues %} + {{ n.body }} + {% endfor %} +

+

+ {%trans "Technician Verified Issue" %}: + {% for n in data.verified_issues %} + {{ n.body }} + {% endfor %} +

+

+ {%trans "Customer Notes" %}: + {% for n in data.customer_notes %} + {{ n.body }} + {% endfor %} +

+

+ {%trans "Technician Notes" %}: + {% for n in order.reported_notes %} + {{ n.body }} + {% endfor %} +

{% endif %} {% endblock work_description %}
@@ -98,7 +122,7 @@
{% block parts_and_services %} {% if order.has_products %} -

{% trans "Products and Services" %}

+

{% trans "Parts and Services" %}

@@ -148,7 +172,7 @@
{% block customer_pickup %} -

{% trans "Customer Pickup" %}

+

{% trans "Customer Drop-off" %}

@@ -171,7 +195,7 @@ - + @@ -183,6 +207,11 @@ {% endblock received_by %} +
+
+

{% trans "Additional Notes" %}

+
+

-- cgit v1.2.3
{{ order.created_by.get_full_name }}  {{ order.created_at|date:"SHORT_DATE_FORMAT" }}{% now "SHORT_DATE_FORMAT" %}
{% trans "Name" %}