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/products/form.html | 90 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 servo/templates/products/form.html (limited to 'servo/templates/products/form.html') diff --git a/servo/templates/products/form.html b/servo/templates/products/form.html new file mode 100755 index 0000000..0429e6a --- /dev/null +++ b/servo/templates/products/form.html @@ -0,0 +1,90 @@ +{% extends "products/view.html" %} +{% load i18n %} + +{% block third_column %} +
+
+ {% csrf_token %} + {{ formset.management_form }} + +
+
+ {% include "form_field_snippet.html" with field=form.code %} + {% include "form_field_snippet.html" with field=form.title %} + {% include "form_field_snippet.html" with field=form.description %} + {% include "form_field_snippet.html" with field=form.is_service %} +
+
+ {% include "form_field_snippet.html" with field=form.price_purchase_exchange %} + {% include "form_field_snippet.html" with field=form.pct_margin_exchange %} + {% include "form_field_snippet.html" with field=form.price_notax_exchange %} + {% include "form_field_snippet.html" with field=form.price_sales_exchange %} +
+
+ {% include "form_field_snippet.html" with field=form.price_purchase_stock %} + {% include "form_field_snippet.html" with field=form.pct_margin_stock %} + {% include "form_field_snippet.html" with field=form.price_notax_stock %} + {% include "form_field_snippet.html" with field=form.price_sales_stock %} +
+
+ {% for f in formset %} +
+ {% include "form_snippet.html" with form=f %} +
+ {% endfor %} + {% trans "Add" %} +
+
+ {% include "form_field_snippet.html" with field=form.pct_vat %} + {% include "form_field_snippet.html" with field=form.shipping %} + {% include "form_field_snippet.html" with field=form.warranty_period %} + {% include "form_field_snippet.html" with field=form.brand %} + {% include "form_field_snippet.html" with field=form.categories %} +
+ +
+ +
+ {% for t in product.tags.all %} +
{{ t.tag }}
+ {% endfor %} +
+
+
+ {% include "form_field_snippet.html" with field=form.photo %} + {% include "form_field_snippet.html" with field=form.fixed_price %} + {% include "form_field_snippet.html" with field=form.is_serialized %} +
+
+ {% include "form_field_snippet.html" with field=form.part_type %} + {% include "form_field_snippet.html" with field=form.labour_tier %} + {% include "form_field_snippet.html" with field=form.component_code %} + {% include "form_field_snippet.html" with field=form.eee_code %} +
+
+
+ {% if product.pk %} + {% trans "Cancel" %} + {% else %} + {% trans "Cancel" %} + {% endif %} + +
+
+
+{% endblock third_column %} + +{% block media %} + +{% endblock media %} -- cgit v1.2.3