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/devices.html | 139 ++++++++++++++++++++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100755 servo/templates/orders/devices.html (limited to 'servo/templates/orders/devices.html') diff --git a/servo/templates/orders/devices.html b/servo/templates/orders/devices.html new file mode 100755 index 0000000..271a4ec --- /dev/null +++ b/servo/templates/orders/devices.html @@ -0,0 +1,139 @@ +{% load i18n %} +{% load servo_tags %} + +{% for d in order.orderdevice_set.all %} +{% with d.device as device %} +
+
+ {{ device.description }} +
+
+

{{ device.description }}

+ {% if d.is_repeat_service %} + {% trans "Repeat Service" %} + {% endif %} +
+
{% trans "Warranty Status" %}
+
{{ device.get_warranty_status_display }}
+
{% trans "Purchase Date" %}
+
{{ device.purchased_on|date:"SHORT_DATE_FORMAT"|default:"-" }}, {{ device.get_purchase_country|default:"-" }}
+
{% trans "Serial Number" %}
+
{{ device.sn|default:"-" }}
+ {% if device.configuration %} +
{% trans "Configration" %}
+
{{ device.configuration }}
+ {% endif %} + {% if device.imei %} +
{% trans "IMEI" %}
+
{{ device.imei }}
+
{% trans "Applied Activation Policy" %}
+
{{ device.applied_activation_policy }}
+
{% trans "Initial Activation Policy" %}
+
{{ device.initial_activation_policy }}
+
{% trans "Find My iPhone" %}
+
{{ device.get_fmip_status }}
+
{% trans "Unlocked" %}
+
{{ device.unlocked|yesno }}
+ {% endif %} + {% if device.username %} +
{% trans "Username" %}
+
{{ device.username }}
+ {% endif %} + {% if device.password %} +
{% trans "Password" %}
+
{{ device.password }}
+ {% endif %} + {% if device.get_coverage_details %} +
{% trans "Details" %}
+
{{ device.get_coverage_details|join:"
" }}
+ {% endif %} + {% if device.notes %} +
{% trans "Notes" %}
+
{{ device.notes }}
+ {% endif %} + {% with device|device_accessories:order as accessories %} + {% if accessories.count %} +
{% trans "Accessories" %}
+
{{ accessories|join:", " }}
+ {% endif %} + {% endwith %} +
+ {% if order.queue %} + {% trans "Parts" %} + {% else %} + {% trans "Parts" %} + {% endif %} + {% if order.is_editable %} + {% trans "Accessories" %} + {% else %} + {% trans "Accessories" %} + {% endif %} + {% trans "History" %} +
+ + + + +
+
+
+ {% if d.should_report %} + + {% else %} + + {% endif %} +
+
+ {% if order.is_editable %} + + + {% endif %} +
+
+
+
+
+{% endwith %} +{% empty %} +
+
+

{% trans "Order doesn't contain any devices" %}

+
+
+{% endfor %} +

+ {% trans "Add Device" %} +

+
-- cgit v1.2.3