aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/orders/edit_product.html
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/templates/orders/edit_product.html
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/templates/orders/edit_product.html')
-rwxr-xr-xservo/templates/orders/edit_product.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/servo/templates/orders/edit_product.html b/servo/templates/orders/edit_product.html
new file mode 100755
index 0000000..0bcb710
--- /dev/null
+++ b/servo/templates/orders/edit_product.html
@@ -0,0 +1,33 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block body %}
+
+<form method="post" action="{{ request.path }}" class="form-horizontal">
+ {% csrf_token %}
+ {% include "form_field_snippet.html" with field=form.title %}
+ {% include "form_field_snippet.html" with field=form.amount %}
+ {% include "form_field_snippet.html" with field=form.price_category %}
+ {% include "form_field_snippet.html" with field=form.price %}
+ {% if product.is_serialized %}
+ {% include "form_field_snippet.html" with field=form.sn %}
+ {% include "form_field_snippet.html" with field=form.kbb_sn %}
+ {% include "form_field_snippet.html" with field=form.imei %}
+ {% endif %}
+ {% if product.component_code %}
+ {% include "form_field_snippet.html" with field=form.comptia_code %}
+ {% include "form_field_snippet.html" with field=form.comptia_modifier %}
+ {% endif %}
+ {% include "form_field_snippet.html" with field=form.should_report %}
+</form>
+
+<script type="text/javascript">
+ {% autoescape off %}
+ var prices = {{ prices }};
+ {% endautoescape %}
+ $('#id_price_category').change(function(){
+ $('#id_price').val(prices[$(this).val()]);
+ });
+</script>
+
+{% endblock body %}