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/customers/choose-list.html | 8 ++ servo/templates/customers/choose.html | 45 ++++++++++ servo/templates/customers/delete_group.html | 17 ++++ servo/templates/customers/edit_group.html | 8 ++ servo/templates/customers/find.html | 95 ++++++++++++++++++++ servo/templates/customers/form.html | 51 +++++++++++ servo/templates/customers/index.html | 84 ++++++++++++++++++ servo/templates/customers/list.html | 11 +++ servo/templates/customers/merge.html | 19 ++++ servo/templates/customers/move.html | 20 +++++ servo/templates/customers/remove.html | 17 ++++ servo/templates/customers/results-merge.html | 5 ++ servo/templates/customers/search-results.html | 5 ++ servo/templates/customers/search.html | 44 ++++++++++ servo/templates/customers/upload.html | 13 +++ servo/templates/customers/view.html | 119 ++++++++++++++++++++++++++ 16 files changed, 561 insertions(+) create mode 100755 servo/templates/customers/choose-list.html create mode 100755 servo/templates/customers/choose.html create mode 100755 servo/templates/customers/delete_group.html create mode 100755 servo/templates/customers/edit_group.html create mode 100644 servo/templates/customers/find.html create mode 100755 servo/templates/customers/form.html create mode 100755 servo/templates/customers/index.html create mode 100755 servo/templates/customers/list.html create mode 100644 servo/templates/customers/merge.html create mode 100755 servo/templates/customers/move.html create mode 100755 servo/templates/customers/remove.html create mode 100644 servo/templates/customers/results-merge.html create mode 100755 servo/templates/customers/search-results.html create mode 100755 servo/templates/customers/search.html create mode 100644 servo/templates/customers/upload.html create mode 100755 servo/templates/customers/view.html (limited to 'servo/templates/customers') diff --git a/servo/templates/customers/choose-list.html b/servo/templates/customers/choose-list.html new file mode 100755 index 0000000..84efa7d --- /dev/null +++ b/servo/templates/customers/choose-list.html @@ -0,0 +1,8 @@ +{% load i18n %} + diff --git a/servo/templates/customers/choose.html b/servo/templates/customers/choose.html new file mode 100755 index 0000000..cf812a6 --- /dev/null +++ b/servo/templates/customers/choose.html @@ -0,0 +1,45 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Search for customer" %} +{% endblock header %} + +{% block body %} +
+ {% csrf_token %} +
+
+ + +
+ + +
+
+

{% trans "Enter search query" %}

+{% endblock body %} + +{% block footer %} + {% trans "New Customer" %} + {% trans "Search" %} + +{% endblock footer %} diff --git a/servo/templates/customers/delete_group.html b/servo/templates/customers/delete_group.html new file mode 100755 index 0000000..1c06e0f --- /dev/null +++ b/servo/templates/customers/delete_group.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans "Delete customer group?" %} +{% endblock header %} + +{% block body %} + {% trans "This action will not delete the customers in this group." %} +{% endblock body %} + +{% block footer %} +
+ {% csrf_token %} + +
+{% endblock footer %} diff --git a/servo/templates/customers/edit_group.html b/servo/templates/customers/edit_group.html new file mode 100755 index 0000000..3f5fe5c --- /dev/null +++ b/servo/templates/customers/edit_group.html @@ -0,0 +1,8 @@ +{% extends "modal.html" %} + +{% block body %} +
+ {% csrf_token %} + {% include "form_snippet.html" %} +
+{% endblock body %} diff --git a/servo/templates/customers/find.html b/servo/templates/customers/find.html new file mode 100644 index 0000000..6d8cb14 --- /dev/null +++ b/servo/templates/customers/find.html @@ -0,0 +1,95 @@ +{% extends "customers/index.html" %} +{% load i18n %} + +{% block toolbar %} +
+{% if request.session.customer_query %} + {% trans "Download" %} +{% else %} + {% trans "Download" %} +{% endif %} +
+{% endblock toolbar %} + +{% block tabs %} +
  • {% trans "Browse" %}
  • +
  • {% trans "Search" %}
  • +{% endblock tabs %} + +{% block customers %} +
    + {% csrf_token %} + {% for field in form %} +
    + +
    {{ field }}
    +
    + {% endfor %} +
    + +
    + +
    +
    +
    + +{% if form.errors %} +
    + {% for k, v in form.errors.items %} + {{ v }} + {% endfor %} +
    +{% endif %} + + + + + + + + + + + + + + +{% for i in customers %} + + + + + + + + + +{% empty %} + + + +{% endfor %} + +
    {% trans "Name" %}{% trans "Email" %}{% trans "Phone" %}{% trans "Address" %}{% trans "Postal Code" %}{% trans "City" %}
    {{ i.fullname }}{{ i.email }}{{ i.phone }}{{ i.street_address }}{{ i.zip_code }}{{ i.city }} +
    + + + + +
    +
    {% trans "No customers found" %}
    + {% include "pagination.html" with items=customers %} +{% endblock customers %} diff --git a/servo/templates/customers/form.html b/servo/templates/customers/form.html new file mode 100755 index 0000000..69c6138 --- /dev/null +++ b/servo/templates/customers/form.html @@ -0,0 +1,51 @@ +{% extends "customers/view.html" %} +{% load i18n %} + +{% block third_column %} +
    + {% csrf_token %} + +
    +
    + {% include "form_field_snippet.html" with field=form.name %} + {% include "form_field_snippet.html" with field=form.phone %} + {% include "form_field_snippet.html" with field=form.email %} + {% include "form_field_snippet.html" with field=form.street_address %} + {% include "form_field_snippet.html" with field=form.zip_code %} + {% include "form_field_snippet.html" with field=form.city %} + {% include "form_field_snippet.html" with field=form.is_company %} +
    +
    + {% include "form_field_snippet.html" with field=form.parent %} + {% include "form_field_snippet.html" with field=form.country %} + {% for p in customer.contactinfo_set.all %} +
    + +
    + +
    +
    + {% endfor %} +
    + +
    + +
    +
    + {% include "form_field_snippet.html" with field=form.photo %} + {% include "form_field_snippet.html" with field=form.groups %} + {% include "form_field_snippet.html" with field=form.notes %} +
    +
    + {% include "form_buttons.html" %} +
    +{% endblock third_column %} diff --git a/servo/templates/customers/index.html b/servo/templates/customers/index.html new file mode 100755 index 0000000..84407d9 --- /dev/null +++ b/servo/templates/customers/index.html @@ -0,0 +1,84 @@ +{% extends "default.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} +
    + {% trans "New Customer" %} + + +
    +
    + + + + +
    +{% endblock toolbar %} + +{% block content %} + +
    +
    + +
    +
    + +
    +{% block customers %} +
    + {% block first_column %} + + {% endblock first_column %} +
    +
    + {% block second_column %} + {% include "customers/list.html" %} + {% endblock second_column %} +
    +
    + {% block third_column %} +

    {% trans "No customer selected" %}

    + {% endblock third_column %} +
    +{% endblock customers %} +
    +{% endblock content %} + +{% block crumbs %} +
  • {% trans "Customers" %}
  • +{% endblock crumbs %} diff --git a/servo/templates/customers/list.html b/servo/templates/customers/list.html new file mode 100755 index 0000000..ee1e926 --- /dev/null +++ b/servo/templates/customers/list.html @@ -0,0 +1,11 @@ +{% load servo_tags %} +{% load i18n %} + + +{% include "pagination.html" with items=customers %} diff --git a/servo/templates/customers/merge.html b/servo/templates/customers/merge.html new file mode 100644 index 0000000..942286d --- /dev/null +++ b/servo/templates/customers/merge.html @@ -0,0 +1,19 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {{ title }} +{% endblock header %} + +{% block body %} +
    + {% csrf_token %} + + +
    +
    +{% endblock body %} + +{% block footer %} + +{% endblock footer %} diff --git a/servo/templates/customers/move.html b/servo/templates/customers/move.html new file mode 100755 index 0000000..8bed17b --- /dev/null +++ b/servo/templates/customers/move.html @@ -0,0 +1,20 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} +{% trans "Move customer" %} +{% endblock header %} + +{% block body %} +
    + {% csrf_token %} + + +
    +
    +{% endblock body %} + +{% block footer %} +{% trans "Move to top" %} + +{% endblock footer %} diff --git a/servo/templates/customers/remove.html b/servo/templates/customers/remove.html new file mode 100755 index 0000000..faa2cbc --- /dev/null +++ b/servo/templates/customers/remove.html @@ -0,0 +1,17 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} + {% trans 'Delete' %} {{ customer.name }}? +{% endblock header %} + +{% block body %} +

    {% trans "This will also delete all customer's contacts. Customer's orders will not be deleted" %}

    +{% endblock body %} + +{% block footer %} +
    + {% csrf_token %} + +
    +{% endblock footer %} diff --git a/servo/templates/customers/results-merge.html b/servo/templates/customers/results-merge.html new file mode 100644 index 0000000..a3c6a43 --- /dev/null +++ b/servo/templates/customers/results-merge.html @@ -0,0 +1,5 @@ + diff --git a/servo/templates/customers/search-results.html b/servo/templates/customers/search-results.html new file mode 100755 index 0000000..2af581e --- /dev/null +++ b/servo/templates/customers/search-results.html @@ -0,0 +1,5 @@ + diff --git a/servo/templates/customers/search.html b/servo/templates/customers/search.html new file mode 100755 index 0000000..39cccb8 --- /dev/null +++ b/servo/templates/customers/search.html @@ -0,0 +1,44 @@ +{% extends "two_column_layout.html" %} +{% load i18n %} + +{% block toolbar %} + {% trans "New Customer" %} +{% endblock toolbar %} + +{% block first_column %} + +{% endblock first_column %} + +{% block second_column %} +{% if customers %} +{% for i in customers %} +
    + {{ i.fullname }}
    + {% if i.street_address %} + {{ i.street_address }}
    + {{ i.zip_code }}, {{ i.city }}
    + {% endif %} + {% if i.phone %} + P: {{ i.phone }} + {% endif %} + {% if i.email %} +
    + {{ i.email }} + {% endif %} +
    +
    +{% endfor %} +{% else %} +

    {% trans "No customers found" %}

    +{% endif %} +{% endblock second_column %} + +{% block crumbs %} +
  • {% trans "Customers" %} /
  • +
  • {{ title }}
  • +{% endblock crumbs %} diff --git a/servo/templates/customers/upload.html b/servo/templates/customers/upload.html new file mode 100644 index 0000000..9c5447c --- /dev/null +++ b/servo/templates/customers/upload.html @@ -0,0 +1,13 @@ +{% extends "modal.html" %} +{% load i18n %} + +{% block header %} +{% trans "Import customer data" %} +{% endblock header %} + +{% block body %} +
    + {% csrf_token %} + {% include "form_snippet.html" %} +
    +{% endblock body %} diff --git a/servo/templates/customers/view.html b/servo/templates/customers/view.html new file mode 100755 index 0000000..6e28643 --- /dev/null +++ b/servo/templates/customers/view.html @@ -0,0 +1,119 @@ +{% extends "customers/index.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block third_column %} + +
    +
    + + {{ customer.name }} + {% if customer.parent %}
    + {{ customer.parent.name }} + {% endif %} +
    +
    + {% if customer.email %} +
    {% trans "Email" %}
    +
    {{ customer.email }}
    + {% endif %} + {% if customer.phone %} +
    {% trans "Phone" %}
    +
    {{ customer.get_international_phone }}
    + {% endif %} + {% if customer.street_address %} +
    {% trans "Address" %}
    +
    {{ customer.street_address }}
    {{ customer.zip_code }} {{ customer.city }}
    + {% endif %} + {% for ci in customer.contactinfo_set.all %} +
    {{ ci.key }}
    +
    {{ ci.value }}
    + {% endfor %} + {% if customer.country %} +
    {% trans "Country" %}
    +
    {{ customer.get_country_display }}
    + {% endif %} + {% if customer.notes %} +
    {% trans "Notes" %}
    +
    {{ customer.notes }}
    + {% endif %} +
    + {% if customer.is_company %} +
    +
    {% trans "Contacts" %}
    +
    {% for c in customer.get_contacts %}{{ c }}
    {% endfor %}
    +
    + {% endif %} +
    + {% with request.session.current_order_id as order_id %} + {% if order_id and not request.session.current_order_customer %} + {% trans "Use in " %} #{{ request.session.current_order_code }} + {% else %} + {% trans "Use in current order" %} + {% endif %} + {% endwith %} + +
    + + + + +
    +
    + {% if perms.servo.change_customer %} + {% trans "Edit" %} + {% else %} + {% trans "Edit" %} + {% endif %} +
    +
    +
    + {% include "orders/list.html" %} +
    +
    + {% include "devices/list.html" with devices=customer.devices.all tag_id=None %} +
    +
    + + + {% for i in customer.note_set.all %} + + + + + + + {% empty %} + + {% endfor %} + +
    {{ i.code }}{{ i.subject }}{{ i.created_at|date:"SHORT_DATE_FORMAT" }}{{ i.sender }}
    {% trans "No messages found" %}
    +
    +
    +{% endblock third_column %} + +{% block crumbs %} +
  • {% trans "Customers" %} /
  • +
  • {{ customer.name }}
  • +{% endblock crumbs %} -- cgit v1.2.3