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/notes/form.html | 112 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100755 servo/templates/notes/form.html (limited to 'servo/templates/notes/form.html') diff --git a/servo/templates/notes/form.html b/servo/templates/notes/form.html new file mode 100755 index 0000000..372da30 --- /dev/null +++ b/servo/templates/notes/form.html @@ -0,0 +1,112 @@ +{% extends "two_column_layout.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block first_column %} +{% with note.order as order %} +{% if order %} +{% if order.customer %} +{% include "orders/customer.html" with nodes=order.customer_list %} +
+{% endif %} +{% for device in order.devices.all %} +

+ {{ device.description }}
+ {{ device.configuration }}
+ {{ device.sn }} +

+{% endfor %} +
+{% for p in order.products %} +{{ p.code }}{{ p.price|currency }}
+{{ p.title }}
+{% endfor %} +
+{% trans "Total" %}: +{{ order.gross_total|currency }} +{% endif %} +{% endwith %} +{% endblock first_column %} + +{% block second_column %} + +
+ {% csrf_token %} + {{ form.customer }} + + {{ formset.management_form }} + {{ form.order }} + {% if note.parent %} + {{ form.parent }} + {% endif %} +
+
+ {% include "form_field_snippet.html" with field=form.recipient %} + {% include "form_field_snippet.html" with field=form.subject %} + {% include "form_field_snippet.html" with field=form.sender %} + {% include "form_field_snippet.html" with field=form.body %} + {% include "form_field_snippet.html" with field=form.is_reported %} +
+
+ {% for f in formset %} + {% include "form_snippet.html" with form=f %} + {% endfor %} +
+
+ {% include "form_field_snippet.html" with field=form.labels %} +
+
+ {% include "form_field_snippet.html" with field=escalation_form.issue_type %} + {% include "form_field_snippet.html" with field=escalation_form.status %} + {% include "form_field_snippet.html" with field=escalation_form.gsx_account %} + {% for k, v in contexts.items %} +
+ +
+
+ + +
+
+
+ {% endfor %} +
+ +
+
+ + +
+
+
+
+
+
+ {% if note.pk %} + {% trans "Delete" %} + {% endif %} + +
+
+{% endblock second_column %} + +{% block crumbs %} +{% if note.order %} +
  • {{ order.get_queue_title }} /
  • +
  • {% trans "Order" %} {{ order.code }} /
  • +
  • {% trans "Edit Note" %}
  • +{% endif %} +{% endblock crumbs %} -- cgit v1.2.3