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/edit_escalation.html | 17 +++++ servo/templates/notes/find.html | 39 ++++++++++ servo/templates/notes/form.html | 112 +++++++++++++++++++++++++++++ servo/templates/notes/list_notes.html | 75 +++++++++++++++++++ servo/templates/notes/messages.html | 22 ++++++ servo/templates/notes/remove.html | 17 +++++ servo/templates/notes/search-results.html | 25 +++++++ servo/templates/notes/search.html | 18 +++++ servo/templates/notes/templates.html | 10 +++ servo/templates/notes/view_escalation.html | 1 + servo/templates/notes/view_note.html | 38 ++++++++++ 11 files changed, 374 insertions(+) create mode 100755 servo/templates/notes/edit_escalation.html create mode 100755 servo/templates/notes/find.html create mode 100755 servo/templates/notes/form.html create mode 100755 servo/templates/notes/list_notes.html create mode 100644 servo/templates/notes/messages.html create mode 100755 servo/templates/notes/remove.html create mode 100755 servo/templates/notes/search-results.html create mode 100755 servo/templates/notes/search.html create mode 100755 servo/templates/notes/templates.html create mode 100755 servo/templates/notes/view_escalation.html create mode 100755 servo/templates/notes/view_note.html (limited to 'servo/templates/notes') diff --git a/servo/templates/notes/edit_escalation.html b/servo/templates/notes/edit_escalation.html new file mode 100755 index 0000000..c4e34c1 --- /dev/null +++ b/servo/templates/notes/edit_escalation.html @@ -0,0 +1,17 @@ +{% extends "notes/view_note.html" %} +{% load i18n %} + +{% block note_buttons %} +{% endblock note_buttons %} + +{% block view_message %} +
+ {% csrf_token %} + {% include "form_snippet.html" %} +
+
+ +
+
+
+{% endblock view_message %} diff --git a/servo/templates/notes/find.html b/servo/templates/notes/find.html new file mode 100755 index 0000000..1a55793 --- /dev/null +++ b/servo/templates/notes/find.html @@ -0,0 +1,39 @@ +{% extends "notes/list_notes.html" %} +{% load i18n %} + +{% block second_row %} +
+ +
+
+
+
+ {% for field in form %} +
+ +
{{ field }}
+
+ {% endfor %} +
+ +
+ +
+
+
+ +
+ +
+
+
+ {% include "notes/search-results.html" %} +
+
+
+{% endblock second_row %} 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 %} diff --git a/servo/templates/notes/list_notes.html b/servo/templates/notes/list_notes.html new file mode 100755 index 0000000..fdbc853 --- /dev/null +++ b/servo/templates/notes/list_notes.html @@ -0,0 +1,75 @@ +{% extends "default.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +
    + + + + +
    +{% block note_buttons %} +
    + + + +
    +{% endblock note_buttons %} +{% endblock toolbar %} + +{% block content %} + +{% block second_row %} + + +
    +
    + {% block first_column %} + + {% endblock first_column %} +
    +
    + {% block second_column %} + + {% include "pagination.html" with items=notes %} + {% endblock second_column %} +
    +
    + {% block view_message %} +

    {% trans "No message selected" %}

    + {% endblock view_message %} +
    +
    +{% endblock second_row %} + +{% endblock content %} + +{% block crumbs %} +
  • {% trans "Notes" %}
  • +{% endblock crumbs %} diff --git a/servo/templates/notes/messages.html b/servo/templates/notes/messages.html new file mode 100644 index 0000000..84bbd42 --- /dev/null +++ b/servo/templates/notes/messages.html @@ -0,0 +1,22 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Message Log" %} +{% endblock header %} + +{% block body %} + + + {% for m in messages %} + + + + + + {% empty %} + + {% endfor %} + +
    {{ m.sent_at|date:"SHORT_DATETIME_FORMAT" }}{{ m.recipient }}{{ m.status }}
    {% trans "No messages to display" %}
    +{% endblock body %} diff --git a/servo/templates/notes/remove.html b/servo/templates/notes/remove.html new file mode 100755 index 0000000..c79f4b1 --- /dev/null +++ b/servo/templates/notes/remove.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Delete this note?" %} +{% endblock header %} + +{% block body %} +

    {% trans "This will also delete any replies to this note." %}

    +{% endblock body %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/notes/search-results.html b/servo/templates/notes/search-results.html new file mode 100755 index 0000000..a1ed78d --- /dev/null +++ b/servo/templates/notes/search-results.html @@ -0,0 +1,25 @@ +{% load i18n %} +{% load humanize %} +{% load servo_tags %} + + + +{% include "pagination.html" with items=notes %} diff --git a/servo/templates/notes/search.html b/servo/templates/notes/search.html new file mode 100755 index 0000000..023bb07 --- /dev/null +++ b/servo/templates/notes/search.html @@ -0,0 +1,18 @@ +{% extends "notes/list_notes.html" %} +{% load servo_tags %} +{% load humanize %} +{% load i18n %} + +{% block toolbar %} + {% trans "Create Note" %} +{% endblock toolbar %} + +{% block content %} + + + +{% include "notes/search-results.html" %} + +{% endblock content %} diff --git a/servo/templates/notes/templates.html b/servo/templates/notes/templates.html new file mode 100755 index 0000000..e552791 --- /dev/null +++ b/servo/templates/notes/templates.html @@ -0,0 +1,10 @@ +
    + + + + +
    diff --git a/servo/templates/notes/view_escalation.html b/servo/templates/notes/view_escalation.html new file mode 100755 index 0000000..5609587 --- /dev/null +++ b/servo/templates/notes/view_escalation.html @@ -0,0 +1 @@ +{% extends "notes/view_note.html" %} diff --git a/servo/templates/notes/view_note.html b/servo/templates/notes/view_note.html new file mode 100755 index 0000000..05000f6 --- /dev/null +++ b/servo/templates/notes/view_note.html @@ -0,0 +1,38 @@ +{% extends "notes/list_notes.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block note_buttons %} +
    + + + + +
    +{% endblock note_buttons %} + +{% block view_message %} +
    +

    {% trans "From" %}: {{ note.sender }}

    + {% if note.order.id %} +

    {% trans "Service Order" %}: {{ note.order.code }}

    + {% endif %} +

    {% trans "Created" %}: {{ note.created_at|relative_date }}

    +

    {% trans "Subject" %}: {{ note.subject }}

    +
    +
    + {{ note.body|markdown }} + {% for a in note.attachments.all %} + {{ a }} + {% endfor %} +
    + +
    +{% endblock view_message %} -- cgit v1.2.3