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/batch_process.html | 14 ++ servo/templates/orders/checklists.html | 10 ++ servo/templates/orders/close.html | 17 +++ servo/templates/orders/close_repair.html | 17 +++ servo/templates/orders/customer.html | 52 +++++++ servo/templates/orders/delete_order.html | 17 +++ servo/templates/orders/devices.html | 139 ++++++++++++++++++ servo/templates/orders/dispatch.html | 115 +++++++++++++++ servo/templates/orders/edit.html | 115 +++++++++++++++ servo/templates/orders/edit_product.html | 33 +++++ servo/templates/orders/events.html | 21 +++ servo/templates/orders/followers.html | 28 ++++ servo/templates/orders/gsx_repair_form.html | 94 ++++++++++++ servo/templates/orders/history.html | 9 ++ servo/templates/orders/index.html | 55 +++++++ servo/templates/orders/list.html | 43 ++++++ servo/templates/orders/list_products.html | 22 +++ servo/templates/orders/notes.html | 84 +++++++++++ servo/templates/orders/parts.html | 36 +++++ servo/templates/orders/print_confirmation.html | 193 +++++++++++++++++++++++++ servo/templates/orders/print_dispatch.html | 38 +++++ servo/templates/orders/print_quote.html | 3 + servo/templates/orders/print_receipt.html | 46 ++++++ servo/templates/orders/products.html | 98 +++++++++++++ servo/templates/orders/remove_customer.html | 17 +++ servo/templates/orders/remove_device.html | 17 +++ servo/templates/orders/remove_product.html | 17 +++ servo/templates/orders/repair.html | 63 ++++++++ servo/templates/orders/reserve_products.html | 13 ++ servo/templates/orders/search.html | 7 + servo/templates/orders/statuses.html | 7 + servo/templates/orders/tabs.html | 8 + servo/templates/orders/toggle_flagged.html | 1 + servo/templates/orders/toggle_follow.html | 1 + servo/templates/orders/toolbar.html | 116 +++++++++++++++ 35 files changed, 1566 insertions(+) create mode 100644 servo/templates/orders/batch_process.html create mode 100755 servo/templates/orders/checklists.html create mode 100755 servo/templates/orders/close.html create mode 100755 servo/templates/orders/close_repair.html create mode 100755 servo/templates/orders/customer.html create mode 100755 servo/templates/orders/delete_order.html create mode 100755 servo/templates/orders/devices.html create mode 100755 servo/templates/orders/dispatch.html create mode 100755 servo/templates/orders/edit.html create mode 100755 servo/templates/orders/edit_product.html create mode 100755 servo/templates/orders/events.html create mode 100755 servo/templates/orders/followers.html create mode 100755 servo/templates/orders/gsx_repair_form.html create mode 100644 servo/templates/orders/history.html create mode 100755 servo/templates/orders/index.html create mode 100755 servo/templates/orders/list.html create mode 100755 servo/templates/orders/list_products.html create mode 100755 servo/templates/orders/notes.html create mode 100755 servo/templates/orders/parts.html create mode 100755 servo/templates/orders/print_confirmation.html create mode 100755 servo/templates/orders/print_dispatch.html create mode 100755 servo/templates/orders/print_quote.html create mode 100755 servo/templates/orders/print_receipt.html create mode 100755 servo/templates/orders/products.html create mode 100755 servo/templates/orders/remove_customer.html create mode 100755 servo/templates/orders/remove_device.html create mode 100755 servo/templates/orders/remove_product.html create mode 100755 servo/templates/orders/repair.html create mode 100755 servo/templates/orders/reserve_products.html create mode 100755 servo/templates/orders/search.html create mode 100755 servo/templates/orders/statuses.html create mode 100755 servo/templates/orders/tabs.html create mode 100755 servo/templates/orders/toggle_flagged.html create mode 100755 servo/templates/orders/toggle_follow.html create mode 100755 servo/templates/orders/toolbar.html (limited to 'servo/templates/orders') diff --git a/servo/templates/orders/batch_process.html b/servo/templates/orders/batch_process.html new file mode 100644 index 0000000..996eceb --- /dev/null +++ b/servo/templates/orders/batch_process.html @@ -0,0 +1,14 @@ +{% extends "orders/index.html" %} +{% load bootstrap3 %} +{% load i18n %} + +{% block content %} +

{% trans "Batch Processing" %}

+
+ {% csrf_token %} + {% bootstrap_form form %} + {% buttons %} + + {% endbuttons %} +
+{% endblock content %} diff --git a/servo/templates/orders/checklists.html b/servo/templates/orders/checklists.html new file mode 100755 index 0000000..b2f9e47 --- /dev/null +++ b/servo/templates/orders/checklists.html @@ -0,0 +1,10 @@ +{% load servo_tags %} +{% for c in checklists %} +

{{ c.title }} ({{ order.checklistitemvalue_set.all.count }}/{{ c.checklistitem_set.all.count }})

+ {% for i in c.checklistitem_set.all %} + + {% if forloop.last %}
{% endif %} + {% endfor %} +{% endfor %} diff --git a/servo/templates/orders/close.html b/servo/templates/orders/close.html new file mode 100755 index 0000000..b80f862 --- /dev/null +++ b/servo/templates/orders/close.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans 'Close order' %} {{ order.code }}? +{% endblock header %} + +{% block body %} +

{% trans "This order will no longer be editable." %}

+{% endblock body %} + +{% block footer %} +
+ {% csrf_token %} + +
+{% endblock footer %} diff --git a/servo/templates/orders/close_repair.html b/servo/templates/orders/close_repair.html new file mode 100755 index 0000000..db50087 --- /dev/null +++ b/servo/templates/orders/close_repair.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Complete the GSX repair?" %} +{% endblock header %} + +{% block body %} + {% trans "The GSX repair will no longer be editable." %} +{% endblock body %} + +{% block footer %} +
+ {% csrf_token %} + +
+{% endblock footer %} diff --git a/servo/templates/orders/customer.html b/servo/templates/orders/customer.html new file mode 100755 index 0000000..ccd9184 --- /dev/null +++ b/servo/templates/orders/customer.html @@ -0,0 +1,52 @@ +{% load i18n %} +{% load mptt_tags %} +{% load servo_tags %} +{% recursetree nodes %} +
+ {{ node.name }} +
+ + + + +
+
+ {% if node.email %} + {{ node.email }}
+ {% endif %} + {% if node.phone %} + {{ node.get_national_phone }}
+ {% endif %} + {% if node.street_address %} + {{ node.street_address }}
+ {{ node.zip_code }} {{ node.city }} + {% endif %} + {% with node.fullprops.items as props %} + {% if props %} +
+ {% for k, v in props %} + {{ k }}: {{ v }}
+ {% endfor %} + {% endif %} + {% endwith %} + {% if node.notes %} +

{{ node.notes|default:"" }}

+ {% endif %} +
+{{ children }} +{% endrecursetree %} diff --git a/servo/templates/orders/delete_order.html b/servo/templates/orders/delete_order.html new file mode 100755 index 0000000..ee44fc6 --- /dev/null +++ b/servo/templates/orders/delete_order.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% blocktrans with id=order.code%}Really delete order {{ id }}? {% endblocktrans %} +{% endblock header %} + +{% block body %} +

{% trans "This will also delete all the order's notes. This action cannot be undone." %}

+{% endblock body %} + +{% block footer %} +
+ {% csrf_token %} + +
+{% endblock footer %} 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" %} +

+
diff --git a/servo/templates/orders/dispatch.html b/servo/templates/orders/dispatch.html new file mode 100755 index 0000000..f7ea0fb --- /dev/null +++ b/servo/templates/orders/dispatch.html @@ -0,0 +1,115 @@ +{% extends "orders/edit.html" %} +{% load staticfiles %} +{% load servo_tags %} +{% load i18n %} + +{% block content %} + +
+ {% csrf_token %} + {{ formset.management_form }} +
+
+
+
+ {% trans "Customer" %} +
+ {% include "form_field_snippet.html" with field=form.customer_name %} +
+
+ {% include "form_field_snippet.html" with field=form.customer_email %} +
+
+ {% include "form_field_snippet.html" with field=form.customer_phone %} +
+
+ {% include "form_field_snippet.html" with field=form.customer_address %} +
+
+ {% include "form_field_snippet.html" with field=form.reference %} +
+
+
+
+
+ {% trans "Payment" %} + {% for f in formset %} +
+
+ {{ f.created_by }} + {{ f.method }} +
+
+ {{ f.amount }} +
+
+ {% endfor %} + +
+
+
+
+
+ {% trans "Products" %} + + + + + + + + + + + + {% for p in products %} + + + + + + + + {% endfor %} + + + + + + + + + + + +
{% trans "Product" %}{% trans "Qty" %}{% trans "Price" %}{% trans "Price w/ tax" %}{% trans "Total" %}
{{ p.product.code }}
{{ p.product.title }}
{{ p.amount }}{{ p.price_notax|currency }}{{ p.price|currency }}{{ p.total_gross|currency }}
{% trans "Total" %}:{{ totals.amount }}{{ form.total_net }}{{ form.total_tax }}{{ form.total_gross }}
+
+
+
+
+
+ {% trans "Cancel" %} + +
+
+
+{% endblock content %} + +{% block crumbs %} +
  • {{ order.get_queue_title }} /
  • +
  • {% trans "Order" %} {{ order.get_footer }} /
  • +
  • {% trans "Dispatch" %}
  • +{% endblock crumbs %} + +{% block media %} + +{% endblock media %} diff --git a/servo/templates/orders/edit.html b/servo/templates/orders/edit.html new file mode 100755 index 0000000..c340585 --- /dev/null +++ b/servo/templates/orders/edit.html @@ -0,0 +1,115 @@ +{% extends "default.html" %} +{% load staticfiles %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +{% include "orders/toolbar.html" %} +{% endblock toolbar %} + +{% block content %} + + +
    +
    + {% block first_column %} + {% if order.customer %} + {% include "orders/customer.html" with nodes=customer %} + {% else %} + + {% endif %} +
    + {% include "orders/checklists.html" %} + {% include "orders/followers.html" %} +
    +
    + {% csrf_token %} + + +
    + {% if order.place %} +
    + {{ order.place }} +
    + {% else %} +

    {% trans "No place" %}

    + {% endif %} +
    +
    + {% csrf_token %} + + +
    + {% for t in order.tags.all %} +
    {{ t.title }}
    + {% empty %} +

    {% trans "No labels" %}

    + {% endfor %} + {% endblock first_column %} +
    + +
    + {% block second_column %} + {% include "orders/devices.html" %} + {% include "orders/notes.html" with notes=order.notes %} + {% include "orders/products.html" %} + {% endblock second_column %} +
    +
    + {% endblock content %} + + {% block crumbs %} +
  • {{ order.get_queue_title }} /
  • + {% block morecrumbs %}
  • {% trans "Order" %} {{ order.get_footer }}
  • {% endblock morecrumbs %} + {% endblock crumbs %} diff --git a/servo/templates/orders/edit_product.html b/servo/templates/orders/edit_product.html new file mode 100755 index 0000000..0bcb710 --- /dev/null +++ b/servo/templates/orders/edit_product.html @@ -0,0 +1,33 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block body %} + +
    + {% csrf_token %} + {% include "form_field_snippet.html" with field=form.title %} + {% include "form_field_snippet.html" with field=form.amount %} + {% include "form_field_snippet.html" with field=form.price_category %} + {% include "form_field_snippet.html" with field=form.price %} + {% if product.is_serialized %} + {% include "form_field_snippet.html" with field=form.sn %} + {% include "form_field_snippet.html" with field=form.kbb_sn %} + {% include "form_field_snippet.html" with field=form.imei %} + {% endif %} + {% if product.component_code %} + {% include "form_field_snippet.html" with field=form.comptia_code %} + {% include "form_field_snippet.html" with field=form.comptia_modifier %} + {% endif %} + {% include "form_field_snippet.html" with field=form.should_report %} +
    + + + +{% endblock body %} diff --git a/servo/templates/orders/events.html b/servo/templates/orders/events.html new file mode 100755 index 0000000..389e22a --- /dev/null +++ b/servo/templates/orders/events.html @@ -0,0 +1,21 @@ +{% extends "orders/edit.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block tabs %} +{% include "orders/tabs.html" with active='events' %} +{% endblock tabs %} + +{% block second_column %} + + + {% for event in order.events.all %} + + + + + + {% endfor %} + +
    {{ event.description }}{{ event.description }}{{ event.triggered_by }}, {{ event.triggered_at|relative_date }}
    +{% endblock second_column %} diff --git a/servo/templates/orders/followers.html b/servo/templates/orders/followers.html new file mode 100755 index 0000000..ce020bd --- /dev/null +++ b/servo/templates/orders/followers.html @@ -0,0 +1,28 @@ +{% load i18n %} + +
    + {% csrf_token %} + + +
    +{% for i in followers %} +
    + {% with i.get_full_name|truncatechars:26 as fullname %} + {% if i == order.user %} + {{ fullname }} + {% else %} + {{ fullname }} + {% endif %} + {% endwith %} +
    + {% if i == order.user %} + + {% else %} + + {% endif %} + +
    +
    +{% empty %} +

    {% trans "No followers" %}

    +{% endfor %} diff --git a/servo/templates/orders/gsx_repair_form.html b/servo/templates/orders/gsx_repair_form.html new file mode 100755 index 0000000..512ce5a --- /dev/null +++ b/servo/templates/orders/gsx_repair_form.html @@ -0,0 +1,94 @@ +{% extends "default.html" %} +{% load staticfiles %} +{% load servo_tags %} +{% load i18n %} + +{% block content %} + + + +
    +
    +
    + {% csrf_token %} + {{ repair_form.device }} + {{ device.description }} +

    + {{ device.get_warranty_status_display }}
    + {{ device.configuration }}
    + {{ device.sn }} +

    +
    + {% trans "Parts" %} +

    {% trans "Checking warranty" %}...

    +
    + {% trans "Total" %}: + {{ order.gross_total|currency }} +
    +
    + +
    +
    + {% include "form_field_snippet.html" with field=repair_form.symptom %} + {% include "form_field_snippet.html" with field=repair_form.diagnosis %} + {% include "form_field_snippet.html" with field=repair_form.tech_id %} +
    +
    + {% include "form_field_snippet.html" with field=repair_form.notes %} + {% include "form_field_snippet.html" with field=repair_form.unit_received_at %} + {% include "form_field_snippet.html" with field=repair_form.attachment %} + {% include "form_field_snippet.html" with field=repair_form.reference %} + {% include "form_field_snippet.html" with field=repair_form.consumer_law %} + {% include "form_field_snippet.html" with field=repair_form.request_review %} + {% if repair.can_mark_complete %} + {% include "form_field_snippet.html" with field=repair_form.replacement_sn %} + {% include "form_field_snippet.html" with field=repair_form.mark_complete %} + {% endif %} +
    +
    + {% include "form_snippet.html" with form=customer_form %} +
    +
    + {% include "form_snippet.html" with form=component_form %} +
    +
    +
    + +
    + {% if repair.pk %} + {% trans "Delete" %} + {% endif %} + +
    +
    +
    +
    +
    +{% endblock content %} + +{% block crumbs %} +
  • {{ order.get_queue_title }} /
  • +
  • {% trans "Order" %} {{ order.code }}
  • +{% endblock crumbs %} + +{% block media %} +{{ repair_form.media }} +{% endblock media %} diff --git a/servo/templates/orders/history.html b/servo/templates/orders/history.html new file mode 100644 index 0000000..5a908b9 --- /dev/null +++ b/servo/templates/orders/history.html @@ -0,0 +1,9 @@ +{% extends "modal.html" %} +{% load i18n %} +{% block header %} + {% trans "Order History" %} +{% endblock header %} + +{% block body %} + {% include "orders/list.html" %} +{% endblock body %} diff --git a/servo/templates/orders/index.html b/servo/templates/orders/index.html new file mode 100755 index 0000000..21116d5 --- /dev/null +++ b/servo/templates/orders/index.html @@ -0,0 +1,55 @@ +{% extends "default.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +{% if perms.servo.add_order %} + {% trans "Create Order" %} + {% if request.session.order_queryset %} + {% trans "Download Results" %} + {% endif %} +{% else %} + {% trans "Create Order" %} +{% endif %} +{% endblock toolbar %} + +{% block content %} + + +
    +
    +
    + {% for field in form %} +
    + +
    {{ field }}
    +
    + {% endfor %} +


    +
    + {% trans "Reset" %} + +
    +
    +
    +
    + +{% block second_column %} +{% include "orders/list.html" %} +{% endblock second_column %} + +{% endblock content %} + +{% block crumbs %} +
  • {% trans "Orders" %}
  • +{% endblock crumbs %} diff --git a/servo/templates/orders/list.html b/servo/templates/orders/list.html new file mode 100755 index 0000000..2e5347b --- /dev/null +++ b/servo/templates/orders/list.html @@ -0,0 +1,43 @@ +{% load staticfiles %} +{% load servo_tags %} +{% load humanize %} +{% load cache %} +{% load i18n %} + + + + + + + + + + + + + + {% for order in orders %} + + + + + + + + {% empty %} + + + + {% endfor %} + +
    {% trans "Order" %}{% trans "Customer" %}{% trans "Created" %}{% trans "Assigned to" %}{% trans "Status" %}
    {{ order.code }}{% if order.customer_name %}{{ order.customer_name }}{% else %}{% trans "No customer" %}{% endif %}
    {% if order.description %}{{ order.description }}{% else %}{% trans "No description" %}{% endif %} {% cache 120 order_tags order.pk %} {% for t in order.tags.all %}{{ t.title }} {% endfor %}{% endcache %}
    {{ order.created_at|naturaltime }}
    {{ order.created_at|date:"SHORT_DATETIME_FORMAT" }}
    + {% if order.user %} + {{ order.get_user_name }}
    + {{ order.started_at|naturaltime|default:"" }} + {% else %} + {% trans "Nobody" %} + {% endif %} +
    {% if order.status_name %}{{ order.status_name }}{% else %}{% trans "No status" %}{% endif %}
    {{ order.status_started_at|naturaltime|default:"" }}
    {{ order.status_name }}
    {% trans "No orders found" %}
    + {% if orders.paginator %} + {% include "pagination.html" with items=orders %} + {% endif %} diff --git a/servo/templates/orders/list_products.html b/servo/templates/orders/list_products.html new file mode 100755 index 0000000..051c9fe --- /dev/null +++ b/servo/templates/orders/list_products.html @@ -0,0 +1,22 @@ +{% load i18n %} +{% load servo_tags %} + +
    + +
    + {% trans "Total" %}: + {{ order.gross_total|currency }} +
    diff --git a/servo/templates/orders/notes.html b/servo/templates/orders/notes.html new file mode 100755 index 0000000..06cc61d --- /dev/null +++ b/servo/templates/orders/notes.html @@ -0,0 +1,84 @@ +{% load i18n %} +{% load humanize %} +{% load mptt_tags %} +{% load servo_tags %} + +{% if not order.notes %} +
    +

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

    +
    +{% endif %} + + +

    + {% trans "Add Note" %} +

    diff --git a/servo/templates/orders/parts.html b/servo/templates/orders/parts.html new file mode 100755 index 0000000..bf3cbf3 --- /dev/null +++ b/servo/templates/orders/parts.html @@ -0,0 +1,36 @@ +{% extends "orders/edit.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +{% endblock toolbar %} + +{% block first_column %} +
    + {{ device.description }}
    + {{ device.configuration }}
    + {{ device.get_warranty_status_display }}
    + {{ device.sn }} +
    + {% trans "Parts and Services" %} + {% include "orders/list_products.html" %} +
    +
    + +{% trans "Done" %} +{% endblock first_column %} + +{% block second_toolbar %} +{% endblock second_toolbar %} + +{% block second_column %} + +

    {% trans "Fetching parts..." %}

    + +{% endblock second_column %} + +{% block morecrumbs %} +
  • {% trans "Order" %} {{ order.get_footer }} /
  • +
  • {{ device.description }} /
  • +
  • {% trans "Service Parts" %}
  • +{% endblock morecrumbs %} \ No newline at end of file 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 %} diff --git a/servo/templates/orders/print_dispatch.html b/servo/templates/orders/print_dispatch.html new file mode 100755 index 0000000..003e03e --- /dev/null +++ b/servo/templates/orders/print_dispatch.html @@ -0,0 +1,38 @@ +{% extends "orders/print_confirmation.html" %} +{% load i18n %} + +{% block title %} + {% blocktrans with code=order.code%}Dispatch #{{ code }}{% endblocktrans %} +{% endblock title %} + +{% block parts_and_services %} +

    {% trans "Products and Services" %}

    + + + + + + + + + + + {% block list_products %} + {% for i in order.products %} + + + + + + + + {% endfor %} + {% endblock list_products %} + +
    {% trans "Product" %}{% trans "Warranty" %}{% trans "VAT %" %}{% trans "Qty" %}
    {{ i.product.code }}{{ i.title }}{% if i.sn %}
    {% trans "SN" %}: {{ i.sn }}{% endif %}
    {{ i.product.warranty_period }} {% trans "mon." %}{{ i.product.pct_vat|floatformat:"0" }}%{{ i.amount }}
    +{% endblock parts_and_services %} + +{% block received_by %} +{% endblock received_by %} + +{% block tos %}{% endblock tos %} diff --git a/servo/templates/orders/print_quote.html b/servo/templates/orders/print_quote.html new file mode 100755 index 0000000..3c3a7d7 --- /dev/null +++ b/servo/templates/orders/print_quote.html @@ -0,0 +1,3 @@ +{% extends "orders/print_confirmation.html" %} + +{% block tos %}{% endblock tos %} diff --git a/servo/templates/orders/print_receipt.html b/servo/templates/orders/print_receipt.html new file mode 100755 index 0000000..c4de827 --- /dev/null +++ b/servo/templates/orders/print_receipt.html @@ -0,0 +1,46 @@ +{% extends "orders/print_confirmation.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block title %} + {% blocktrans with invoice.pk as number %}Receipt {{ number }}{% endblocktrans %} +{% endblock title %} + +{% block customer_details %} + {{ invoice.customer_name }}
    + {% trans "Daytime Phone" %}: {{ invoice.customer_phone|default:"-" }}
    + {% trans "Email Address" %}: {{ invoice.customer_email|default:"-" }} + {% if invoice.customer_address %} +
    + {% trans "Address" %}: {{ invoice.customer_address }} + {% endif %} +{% endblock customer_details %} + +{% block list_products %} +{% for i in invoice.invoiceitem_set.all %} + + {{ 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 }} + +{% endfor %} +{% endblock list_products %} + +{% block order_total %} + {{ invoice.total_gross|currency }} +{% endblock order_total %} + +{% block customer_pickup %} +

    + {% trans "Date of invoice" %}: {{ invoice.created_at|date:"SHORT_DATE_FORMAT" }}
    + {% trans "Payment method" %}: {{ invoice.get_payment_methods|join:", " }}
    + {% trans "Sales Person" %}: {{ invoice.created_by.get_full_name }}
    +

    +{% endblock customer_pickup %} + +{% block tos %}{% endblock tos %} 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 %} +

    diff --git a/servo/templates/orders/remove_customer.html b/servo/templates/orders/remove_customer.html new file mode 100755 index 0000000..53572e2 --- /dev/null +++ b/servo/templates/orders/remove_customer.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Remove this customer from the order?" %} +{% endblock header %} + +{% block body %} + {% trans "This will not delete the customer from the database." %} +{% endblock body %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/orders/remove_device.html b/servo/templates/orders/remove_device.html new file mode 100755 index 0000000..dcfd376 --- /dev/null +++ b/servo/templates/orders/remove_device.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% blocktrans with dev=device.description %}Remove {{ dev }}?{% endblocktrans %} +{% endblock header %} + +{% block body %} +

    {% trans "This will not delete the device from the database." %}

    +{% endblock body %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/orders/remove_product.html b/servo/templates/orders/remove_product.html new file mode 100755 index 0000000..e6d2966 --- /dev/null +++ b/servo/templates/orders/remove_product.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Really remove product from order?" %} +{% endblock header %} + +{% block body %} + {% trans "Product will not be deleted from the warehouse." %} +{% endblock body %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/orders/repair.html b/servo/templates/orders/repair.html new file mode 100755 index 0000000..b3798db --- /dev/null +++ b/servo/templates/orders/repair.html @@ -0,0 +1,63 @@ +{% extends "orders/edit.html" %} +{% load i18n %} + +{% block toolbar %} +{% if repair.is_open %} + {% trans "Complete Repair" %} +{% else %} + {% trans "Complete Repair" %} +{% endif %} + {% trans "Copy" %} +{% endblock toolbar %} + +{% block second_column %} +

    {{ status }}

    +
    +
    {% trans "Symptom" %}
    +
    {{ repair.symptom }}
    +
    {% trans "Diagnosis" %}
    +
    {{ repair.diagnosis }}
    +
    {% trans "Request Review" %}
    +
    {{ repair.request_review|yesno }}
    +{% if repair.attachment %} +
    {% trans "Attachment" %}
    + {% with repair.attachment as a %} +
    {{ a }}
    + {% endwith %} +{% endif %} +
    {% trans "Confirmation" %}
    +
    {{ repair.confirmation }}
    +
    {% trans "Reference" %}
    +
    {{ repair.reference }}
    +
    {% trans "Notes" %}
    +
    {{ notes|default:"-"|linebreaks }}
    +
    + + + {% for part in parts %} + + + + {% if part.order_status_code == 'OSHP' %} + + {% else %} + + {% endif %} + + + {% endfor %} + +
    + {{ part.part_number }} +
    + {{ part.part_title }}
    + {{ part.get_symptom_code_display }} - {{ part.get_symptom_modifier_display }} +

    {{ part.coverage_description|default:"-" }}

    {{ part.order_status }}

    {{ part.order_status|default:"-" }}
    +
    + + + + {% include "repairs/part_menu.html" %} +
    +
    +{% endblock second_column %} diff --git a/servo/templates/orders/reserve_products.html b/servo/templates/orders/reserve_products.html new file mode 100755 index 0000000..318a28d --- /dev/null +++ b/servo/templates/orders/reserve_products.html @@ -0,0 +1,13 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% blocktrans with id=order.code %}Reserve all products in order {{ id }}?{% endblocktrans %} +{% endblock header %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/orders/search.html b/servo/templates/orders/search.html new file mode 100755 index 0000000..2789b20 --- /dev/null +++ b/servo/templates/orders/search.html @@ -0,0 +1,7 @@ +{% load i18n %} + +{% if orders %} + {% include "orders/list.html" %} +{% else %} +

    {% trans "No orders found" %}

    +{% endif %} diff --git a/servo/templates/orders/statuses.html b/servo/templates/orders/statuses.html new file mode 100755 index 0000000..8f3eb4b --- /dev/null +++ b/servo/templates/orders/statuses.html @@ -0,0 +1,7 @@ +{% load i18n %} + diff --git a/servo/templates/orders/tabs.html b/servo/templates/orders/tabs.html new file mode 100755 index 0000000..134aa9f --- /dev/null +++ b/servo/templates/orders/tabs.html @@ -0,0 +1,8 @@ +{% load i18n %} +{% load humanize %} + +{% trans "Order" %} +{% for r in order.repair_set.all %} +{{ r.get_number }} +{% endfor %} +{% trans "Events" %} diff --git a/servo/templates/orders/toggle_flagged.html b/servo/templates/orders/toggle_flagged.html new file mode 100755 index 0000000..f062776 --- /dev/null +++ b/servo/templates/orders/toggle_flagged.html @@ -0,0 +1 @@ + {{ action }} diff --git a/servo/templates/orders/toggle_follow.html b/servo/templates/orders/toggle_follow.html new file mode 100755 index 0000000..2563974 --- /dev/null +++ b/servo/templates/orders/toggle_follow.html @@ -0,0 +1 @@ + {{ action }} diff --git a/servo/templates/orders/toolbar.html b/servo/templates/orders/toolbar.html new file mode 100755 index 0000000..4bd9fef --- /dev/null +++ b/servo/templates/orders/toolbar.html @@ -0,0 +1,116 @@ +{% load cache %} +{% load i18n %} + + +
    + {% trans "Print" %} + + +
    +
    + + {{ order.get_queue }} + + +
    +
    + + {{ order.get_status|truncatechars:25 }} + + +
    +
    +{% if order.can_dispatch %} + {% trans "Dispatch" %} +{% else %} + {% trans "Dispatch" %} +{% endif %} +{% if perms.servo.change_order and order.can_close %} + {% trans "Close" %} +{% elif perms.servo.delete_order and order.is_closed %} + {% trans "Reopen" %} +{% else %} + {% trans "Close" %} +{% endif %} +
    +
    + + + + +
    -- cgit v1.2.3