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/purchases/edit_po.html | 92 ++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100755 servo/templates/purchases/edit_po.html (limited to 'servo/templates/purchases/edit_po.html') diff --git a/servo/templates/purchases/edit_po.html b/servo/templates/purchases/edit_po.html new file mode 100755 index 0000000..618f1a3 --- /dev/null +++ b/servo/templates/purchases/edit_po.html @@ -0,0 +1,92 @@ +{% extends "purchases/list_pos.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block toolbar %} + {% trans "Add Product" %} +{% endblock toolbar %} + +{% block filter_bar %} +{% endblock filter_bar %} + +{% block detail_view %} +
+
+ {% include "form_field_snippet.html" with field=form.sales_order %} + {% include "form_field_snippet.html" with field=form.reference %} + {% include "form_field_snippet.html" with field=form.confirmation %} +
+
+ +
+ {% csrf_token %} + {{ formset.management_form }} +
+ + + + + + + + + {% if not order.submitted_at %} + + {% else %} + + {% endif %} + + + + {% for form in formset %} + {{ form.id }} + {{ form.product }} + + + + + + + {% if not order.submitted_at %} + + {% else %} + + {% endif %} + + {% empty %} + + + + {% endfor %} + + + + + + + + + +
{% trans "Code" %}{% trans "Product" %}{% trans "Reference" %}{% trans "Amount" %}{% trans "Purchase Price" %}{% trans "Delete" %}
{{ form.code }}{{ form.title }}{{ form.reference }}{{ form.amount }}{{ form.price }}{{ form.DELETE }}
{% trans "Order does not contain any products" %}
{% trans "Total" %}:{{ order.amount }}{{ order.sum|currency }}
+
+
+ {% include "form_field_snippet.html" with field=form.carrier %} + {% include "form_field_snippet.html" with field=form.supplier %} + {% include "form_field_snippet.html" with field=form.tracking_id %} + {% include "form_field_snippet.html" with field=form.days_delivered %} +
+
+ {% if not order.submitted_at %} +
+ +
+
+ {% endif %} +
+
+{% endblock detail_view %} -- cgit v1.2.3