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/devices/accessories_edit.html | 40 ++++++++++++
servo/templates/devices/choose-error.html | 5 ++
servo/templates/devices/choose-list.html | 12 ++++
servo/templates/devices/choose.html | 26 ++++++++
servo/templates/devices/diagnostic_error.html | 1 +
servo/templates/devices/diagnostic_init.html | 16 +++++
servo/templates/devices/diagnostic_ios.html | 20 ++++++
servo/templates/devices/diagnostic_results.html | 22 +++++++
servo/templates/devices/diagnostics.html | 13 ++++
servo/templates/devices/find.html | 66 +++++++++++++++++++
servo/templates/devices/form.html | 44 +++++++++++++
servo/templates/devices/get_info.html | 45 +++++++++++++
servo/templates/devices/index.html | 78 ++++++++++++++++++++++
servo/templates/devices/list.html | 38 +++++++++++
servo/templates/devices/parts.html | 42 ++++++++++++
servo/templates/devices/remove.html | 17 +++++
servo/templates/devices/search.html | 15 +++++
servo/templates/devices/search_gsx.html | 41 ++++++++++++
servo/templates/devices/search_gsx_error.html | 19 ++++++
servo/templates/devices/search_gsx_parts.html | 30 +++++++++
servo/templates/devices/search_gsx_repairs.html | 27 ++++++++
servo/templates/devices/search_gsx_results.html | 5 ++
servo/templates/devices/search_gsx_warranty.html | 71 ++++++++++++++++++++
servo/templates/devices/specs.html | 42 ++++++++++++
servo/templates/devices/summary.html | 48 ++++++++++++++
servo/templates/devices/upload_devices.html | 13 ++++
servo/templates/devices/view.html | 83 ++++++++++++++++++++++++
27 files changed, 879 insertions(+)
create mode 100755 servo/templates/devices/accessories_edit.html
create mode 100755 servo/templates/devices/choose-error.html
create mode 100755 servo/templates/devices/choose-list.html
create mode 100755 servo/templates/devices/choose.html
create mode 100644 servo/templates/devices/diagnostic_error.html
create mode 100644 servo/templates/devices/diagnostic_init.html
create mode 100644 servo/templates/devices/diagnostic_ios.html
create mode 100755 servo/templates/devices/diagnostic_results.html
create mode 100755 servo/templates/devices/diagnostics.html
create mode 100755 servo/templates/devices/find.html
create mode 100755 servo/templates/devices/form.html
create mode 100755 servo/templates/devices/get_info.html
create mode 100755 servo/templates/devices/index.html
create mode 100755 servo/templates/devices/list.html
create mode 100755 servo/templates/devices/parts.html
create mode 100755 servo/templates/devices/remove.html
create mode 100755 servo/templates/devices/search.html
create mode 100755 servo/templates/devices/search_gsx.html
create mode 100755 servo/templates/devices/search_gsx_error.html
create mode 100755 servo/templates/devices/search_gsx_parts.html
create mode 100755 servo/templates/devices/search_gsx_repairs.html
create mode 100755 servo/templates/devices/search_gsx_results.html
create mode 100755 servo/templates/devices/search_gsx_warranty.html
create mode 100755 servo/templates/devices/specs.html
create mode 100755 servo/templates/devices/summary.html
create mode 100755 servo/templates/devices/upload_devices.html
create mode 100755 servo/templates/devices/view.html
(limited to 'servo/templates/devices')
diff --git a/servo/templates/devices/accessories_edit.html b/servo/templates/devices/accessories_edit.html
new file mode 100755
index 0000000..db390b3
--- /dev/null
+++ b/servo/templates/devices/accessories_edit.html
@@ -0,0 +1,40 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}{% trans "Manage Accessories" %}{% endblock header %}
+
+{% block body %}
+
+
+{% endblock body %}
diff --git a/servo/templates/devices/choose-error.html b/servo/templates/devices/choose-error.html
new file mode 100755
index 0000000..73da7e2
--- /dev/null
+++ b/servo/templates/devices/choose-error.html
@@ -0,0 +1,5 @@
+{% load i18n %}
+{% load servo_tags %}
+
diff --git a/servo/templates/devices/choose-list.html b/servo/templates/devices/choose-list.html
new file mode 100755
index 0000000..8f5d3f4
--- /dev/null
+++ b/servo/templates/devices/choose-list.html
@@ -0,0 +1,12 @@
+{% load i18n %}
+
diff --git a/servo/templates/devices/choose.html b/servo/templates/devices/choose.html
new file mode 100755
index 0000000..49d7151
--- /dev/null
+++ b/servo/templates/devices/choose.html
@@ -0,0 +1,26 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+{% trans "Search for device" %}
+{% endblock header %}
+
+{% block body %}
+
+
+{% endblock body %}
+
+{% block footer %}
+{% trans "New Device" %}
+{% trans "Search" %}
+
+{% endblock footer %}
diff --git a/servo/templates/devices/diagnostic_error.html b/servo/templates/devices/diagnostic_error.html
new file mode 100644
index 0000000..242b340
--- /dev/null
+++ b/servo/templates/devices/diagnostic_error.html
@@ -0,0 +1 @@
+{{ error }}
diff --git a/servo/templates/devices/diagnostic_init.html b/servo/templates/devices/diagnostic_init.html
new file mode 100644
index 0000000..6363ca9
--- /dev/null
+++ b/servo/templates/devices/diagnostic_init.html
@@ -0,0 +1,16 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}{% trans "Initiate iOS diagnostics" %}{% endblock header %}
+
+{% block body %}
+
+{% endblock body %}
diff --git a/servo/templates/devices/diagnostic_ios.html b/servo/templates/devices/diagnostic_ios.html
new file mode 100644
index 0000000..7dee528
--- /dev/null
+++ b/servo/templates/devices/diagnostic_ios.html
@@ -0,0 +1,20 @@
+
+{% for k, v in diagnostics.diags.result.items %}
+ - {{ k }}
+ - {{ v }}
+{% endfor %}
+
+
+
+{% for k, v in diagnostics.diags.profile.items %}
+ - {{ k }}
+ - {{ v }}
+{% endfor %}
+
+
+
+{% for k, v in diagnostics.diags.report.items %}
+ - {{ k }}
+ - {{ v }}
+{% endfor %}
+
diff --git a/servo/templates/devices/diagnostic_results.html b/servo/templates/devices/diagnostic_results.html
new file mode 100755
index 0000000..85b9748
--- /dev/null
+++ b/servo/templates/devices/diagnostic_results.html
@@ -0,0 +1,22 @@
+{% load i18n %}
+
+{% with diagnostics.eventHeader as header %}
+ - {% trans "Result" %}
+ - {{ header.diagnosticEventEndResult|default:"-" }}
+ - {% trans "Tool" %}
+ - {{ header.toolID|default:"-" }} ({{ header.toolVersion|default:"-" }})
+ - {% trans "Passed modules" %}
+ - {{ header.modulePassCount|default:"-" }}
+{% endwith %}
+
+
+
+{% for i in diagnostics.eventItems %}
+
+ {{ i.moduleName }} |
+ {{ i.moduleLocation }} |
+ {{ i.moduleTestName }} |
+ {{ i.moduleTestResult }} |
+
+{% endfor %}
+
diff --git a/servo/templates/devices/diagnostics.html b/servo/templates/devices/diagnostics.html
new file mode 100755
index 0000000..eb146c0
--- /dev/null
+++ b/servo/templates/devices/diagnostics.html
@@ -0,0 +1,13 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}{% trans "Diagnostics" %}{% endblock header %}
+
+{% block body %}
+
+
+
{% trans "Fetching diagnostics..." %}
+
+{% endblock body %}
diff --git a/servo/templates/devices/find.html b/servo/templates/devices/find.html
new file mode 100755
index 0000000..1f8e291
--- /dev/null
+++ b/servo/templates/devices/find.html
@@ -0,0 +1,66 @@
+{% extends "devices/index.html" %}
+{% load i18n %}
+
+{% block content %}
+
+
+
+
+
+
+
+
+ {% trans "Serial Number" %} |
+ {% trans "Description" %} |
+ {% trans "Created" %} |
+ {% trans "Warranty Status" %} |
+ |
+
+
+ {% for i in devices %}
+
+ {{ i.sn|safe }} |
+ {{ i.description }} |
+ {{ i.created_at|date:"SHORT_DATE_FORMAT" }} |
+ {{ i.get_warranty_status_display }} |
+
+
+ |
+
+ {% empty %}
+ {% trans "No search results" %} |
+ {% endfor %}
+
+
+{% include "pagination.html" with items=devices %}
+{% endblock content %}
diff --git a/servo/templates/devices/form.html b/servo/templates/devices/form.html
new file mode 100755
index 0000000..8682101
--- /dev/null
+++ b/servo/templates/devices/form.html
@@ -0,0 +1,44 @@
+{% extends "devices/view.html" %}
+{% load i18n %}
+
+{% block fourth_column %}
+
+{% endblock fourth_column %}
diff --git a/servo/templates/devices/get_info.html b/servo/templates/devices/get_info.html
new file mode 100755
index 0000000..e16b1c5
--- /dev/null
+++ b/servo/templates/devices/get_info.html
@@ -0,0 +1,45 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+{{ device.description }}
+{% endblock header %}
+
+{% block body %}
+
+ - {% trans "Warranty Status" %}
+ - {{ device.get_warranty_status_display }}
+ - {% trans "Purchase Date" %}
+ - {{ device.purchased_on|date:"SHORT_DATE_FORMAT"|default:"-" }}, {{ device.purchase_country|default:"-" }}
+ - {% trans "Serial Number" %}
+ - {{ device.sn }}
+ {% if device.configuration %}
+ - {% trans "Configration" %}
+ - {{ device.configuration }}
+ {% endif %}
+ {% if device.imei %}
+ - IMEI
+ - {{ device.imei }}
+ - {% trans "Activation Profile" %}
+ - {{ device.initial_activation_policy }}
+ - {% 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 %}
+
+{% endblock body %}
diff --git a/servo/templates/devices/index.html b/servo/templates/devices/index.html
new file mode 100755
index 0000000..aba62b1
--- /dev/null
+++ b/servo/templates/devices/index.html
@@ -0,0 +1,78 @@
+{% extends "default.html" %}
+{% load servo_tags %}
+{% load i18n %}
+
+{% block toolbar %}
+{% if model %}
+ {% trans "New Device" %}
+ {% trans "Show Parts" %}
+{% else %}
+ {% trans "New Device" %}
+ {% trans "Show Parts" %}
+{% endif %}
+ {% trans "Upload" %}
+{% endblock toolbar %}
+
+{% block content %}
+
+
+
+
+
+
+
+ {% for k, v in product_lines.items %}
+ - {{ v.name }}
+ {% endfor %}
+
+
+
+
+ {% block second_column %}
+
+ {% endblock second_column %}
+
+
+
+ {% block third_column %}
+
+ {% endblock third_column %}
+
+
+ {% block fourth_column %}
+ {% if query %}
+ {% include "devices/parts.html" %}
+ {% else %}
+
{% trans "No device selected" %}
+ {% endif %}
+ {% endblock fourth_column %}
+
+
+
+{% endblock content %}
+
+{% block crumbs %}
+ {% trans "Devices" %}{% block path %}{% endblock path %}
+{% endblock crumbs %}
diff --git a/servo/templates/devices/list.html b/servo/templates/devices/list.html
new file mode 100755
index 0000000..b11cab8
--- /dev/null
+++ b/servo/templates/devices/list.html
@@ -0,0 +1,38 @@
+{% load i18n %}
+
+
+
+ {% for device in devices %}
+
+ {{ device.sn }} |
+ {{ device.description }} |
+ {{ device.purchased_on|default:"-" }} |
+ {{ device.get_warranty_status_display }} |
+
+
+ |
+
+ {% empty %}
+ {% trans "No devices found" %} |
+ {% endfor %}
+
+
diff --git a/servo/templates/devices/parts.html b/servo/templates/devices/parts.html
new file mode 100755
index 0000000..1f4f12c
--- /dev/null
+++ b/servo/templates/devices/parts.html
@@ -0,0 +1,42 @@
+{% load i18n %}
+{% load servo_tags %}
+
+
+
diff --git a/servo/templates/devices/remove.html b/servo/templates/devices/remove.html
new file mode 100755
index 0000000..8bd7def
--- /dev/null
+++ b/servo/templates/devices/remove.html
@@ -0,0 +1,17 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+ {% blocktrans with sn=device.sn%}Delete device {{ sn }}"?{% endblocktrans %}
+{% endblock header %}
+
+{% block body %}
+ {% trans "This will also remove it from all service orders." %}
+{% endblock body %}
+
+{% block footer %}
+
+{% endblock footer %}
diff --git a/servo/templates/devices/search.html b/servo/templates/devices/search.html
new file mode 100755
index 0000000..28760b5
--- /dev/null
+++ b/servo/templates/devices/search.html
@@ -0,0 +1,15 @@
+{% extends "two_column_layout.html" %}
+{% load servo_tags %}
+{% load i18n %}
+
+{% block first_column %}
+
+{% endblock first_column %}
+
+{% block second_column %}
+{% include "devices/list.html" %}
+{% endblock second_column %}
+
+{% block crumbs %}
+{% trans "Devices" %}/{{ title }}
+{% endblock crumbs %}
diff --git a/servo/templates/devices/search_gsx.html b/servo/templates/devices/search_gsx.html
new file mode 100755
index 0000000..4f06b81
--- /dev/null
+++ b/servo/templates/devices/search_gsx.html
@@ -0,0 +1,41 @@
+{% extends "devices/search.html" %}
+{% load i18n %}
+
+{% block second_column %}
+{% block tabs %}
+
+{% endblock tabs %}
+
+{% block results %}
+ {% include "devices/search_gsx_results.html" %}
+{% endblock results %}
+
+{% endblock second_column %}
+
+{% block media %}
+
+{% endblock media %}
diff --git a/servo/templates/devices/search_gsx_error.html b/servo/templates/devices/search_gsx_error.html
new file mode 100755
index 0000000..1a0de98
--- /dev/null
+++ b/servo/templates/devices/search_gsx_error.html
@@ -0,0 +1,19 @@
+{% extends "devices/search.html" %}
+{% load i18n %}
+
+{% block second_column %}
+{% block tabs %}
+
+{% endblock tabs %}
+
+{% block results %}
+ {% include "search/results/gsx_error.html" %}
+{% endblock results %}
+
+{% endblock second_column %}
diff --git a/servo/templates/devices/search_gsx_parts.html b/servo/templates/devices/search_gsx_parts.html
new file mode 100755
index 0000000..63bfdb9
--- /dev/null
+++ b/servo/templates/devices/search_gsx_parts.html
@@ -0,0 +1,30 @@
+{% load i18n %}
+{% load servo_tags %}
+
+{% autoescape on %}
+{% for p in results %}
+
+ {{ p.code }} |
+ {{ p.title }} {{ p.eee_code|truncatechars:40 }} |
+ {{ p.price_sales_exchange|currency }} |
+ {{ p.price_sales_stock|currency }} |
+ 0 |
+
+
+ |
+
+{% endfor %}
+{% endautoescape %}
diff --git a/servo/templates/devices/search_gsx_repairs.html b/servo/templates/devices/search_gsx_repairs.html
new file mode 100755
index 0000000..6cb9f7f
--- /dev/null
+++ b/servo/templates/devices/search_gsx_repairs.html
@@ -0,0 +1,27 @@
+{% load i18n %}
+
+
+
+ {% trans "Number" %} |
+ {% trans "Reference" %} |
+ {% trans "Created" %} |
+ {% trans "Customer" %} |
+ {% trans "Status" %} |
+
+
+
+ {% for r in results %}
+
+ {% with r.repairConfirmationNumber as repconf %}
+ {{ repconf }} |
+ {% endwith %}
+ {{ r.purchaseOrderNumber|safe }} |
+ {{ r.createdOn }} |
+ {{ r.customerName }} |
+ {{ r.repairStatus }} |
+
+ {% empty %}
+ {% trans "No search results" %} |
+ {% endfor %}
+
+
diff --git a/servo/templates/devices/search_gsx_results.html b/servo/templates/devices/search_gsx_results.html
new file mode 100755
index 0000000..b7a0926
--- /dev/null
+++ b/servo/templates/devices/search_gsx_results.html
@@ -0,0 +1,5 @@
+
diff --git a/servo/templates/devices/search_gsx_warranty.html b/servo/templates/devices/search_gsx_warranty.html
new file mode 100755
index 0000000..e278001
--- /dev/null
+++ b/servo/templates/devices/search_gsx_warranty.html
@@ -0,0 +1,71 @@
+{% load i18n %}
+
+{% for d in results %}
+
+
+
![{{ d.description }} {{ d.description }}]({{ d.get_image_url }})
+
+
+
{{ d.description }}
+ {% if d.tags %}
+ {% for t in d.tags.all %}
{{ t.tag }}{% endfor %}
+ {% endif %}
+
+ - {% trans "Warranty Status" %}
+ - {{ d.get_warranty_status_display }}
+ - {% trans "Purchase Date" %}
+ - {{ d.purchased_on|date:"SHORT_DATE_FORMAT"|default:"-" }}, {{ d.purchase_country|default:"-" }}
+ - {% trans "Serial Number" %}
+ - {{ d.sn }}
+ - {% trans "Configration" %}
+ - {{ d.configuration }}
+ {% if d.imei %}
+ - {% trans "IMEI" %}
+ - {{ d.imei|safe }}
+ - {% trans "Applied Activation Policy" %}
+ - {{ d.applied_activation_policy }}
+ - {% trans "Initial Activation Policy" %}
+ - {{ d.initial_activation_policy }}
+ - {% trans "Next Tether Policy" %}
+ - {{ d.next_tether_policy }}
+ - {% trans "Find My iPhone" %}
+ - {{ d.get_fmip_status }}
+ - {% trans "Unlocked" %}
+ - {{ d.unlocked|yesno }}
+ {% endif %}
+ {% if d.repeat_service %}
+ {% with d.repeat_service as order %}
+ - {% trans "Sales Order" %}
+ - {{ d.repeat_service.code }} ({{ order.created_at|date:"SHORT_DATE_FORMAT" }})
+ {% endwith %}
+ {% endif %}
+ {% if d.get_coverage_details %}
+ - {% trans "Details" %}
+ - {{ d.get_coverage_details|join:"
" }}
+ {% endif %}
+ {% if d.has_onsite %}
+ - {% trans "Onsite Coverage" %}
+ - {{ d.onsite_start_date }} - {{ d.onsite_end_date }}
+ {% endif %}
+ {% if d.contract_start_date %}
+ - {% trans "Contract Coverage" %}
+ - {{ d.contract_start_date }} - {{ d.contract_end_date }}
+ {% endif %}
+ {% if d.notes %}
+ - {% trans "Notes" %}
+ - {{ d.notes }}
+ {% endif %}
+
+
+ {% if request.session.current_order_id %}
+ {% with request.session.current_order_id as co %}
+
{% trans "Use in order" %} #{{ request.session.current_order_code }}
+ {% endwith %}
+ {% endif %}
+
{% trans "Create Service Order" %}
+ {% if d.manual_url %}
+
{% trans "Download Manual" %}
+ {% endif %}
+
+
+{% endfor %}
diff --git a/servo/templates/devices/specs.html b/servo/templates/devices/specs.html
new file mode 100755
index 0000000..dcad375
--- /dev/null
+++ b/servo/templates/devices/specs.html
@@ -0,0 +1,42 @@
+{% extends "devices/index.html" %}
+{% load mptt_tags %}
+{% load i18n %}
+
+{% block navtabs %}
+
+{% endblock navtabs %}
+
+{% block content %}
+
+
+
+ {% recursetree specs %}
+ - {{ node.title }}
+ {% if not node.is_leaf_node %}
+
+ {% endif %}
+
+ {% endrecursetree %}
+
+
+
+
+ {% block specs %}
+ {% endblock specs %}
+
+
+{% endblock content %}
diff --git a/servo/templates/devices/summary.html b/servo/templates/devices/summary.html
new file mode 100755
index 0000000..cc6b4dc
--- /dev/null
+++ b/servo/templates/devices/summary.html
@@ -0,0 +1,48 @@
+{% load i18n %}
+
+
+
![{{ device.description }} {{ device.description }}]({{ device.get_photo }})
+
+
+
{{ device.description }}
+
+ - {% 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.username %}
+ - {% trans "Username" %}
+ - {{ device.username }}
+ {% endif %}
+ {% if device.password %}
+ - {% trans "Password" %}
+ - {{ device.password }}
+ {% 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 }}
+ {% endif %}
+ {% if device.notes %}
+ - {% trans "Notes" %}
+ - {{ device.notes }}
+ {% endif %}
+
+ {% for t in device.tags.all %}
+
{{ t.tag }}
+ {% endfor %}
+
+
diff --git a/servo/templates/devices/upload_devices.html b/servo/templates/devices/upload_devices.html
new file mode 100755
index 0000000..1d30242
--- /dev/null
+++ b/servo/templates/devices/upload_devices.html
@@ -0,0 +1,13 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+{% trans "Upload devices" %}
+{% endblock header %}
+
+{% block body %}
+
+{% endblock body %}
diff --git a/servo/templates/devices/view.html b/servo/templates/devices/view.html
new file mode 100755
index 0000000..fd6d3a9
--- /dev/null
+++ b/servo/templates/devices/view.html
@@ -0,0 +1,83 @@
+{% extends "devices/index.html" %}
+{% load servo_tags %}
+{% load i18n %}
+
+{% block fourth_column %}
+
+
+
+
+ {% include "orders/list.html" with orders=device.order_set.all %}
+
+ {% if device.is_apple_device %}
+
+
+
+
{% trans "Fetching repairs..." %}
+
+
+ {% endif %}
+
+{% endblock fourth_column %}
+
+
+{% block path %}
+ / {{ device.description }}
+{% endblock path %}
--
cgit v1.2.3