aboutsummaryrefslogtreecommitdiffstats
path: root/servo/templates/products
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-12-11 11:42:51 +0200
committerFilipp Lepalaan <filipp@mac.com>2015-12-11 11:42:51 +0200
commitc19241dc3812c92b150376c3c8108c3359aaf488 (patch)
tree5754cec5ff58d1b398ef06427cba0f451d8ef77d /servo/templates/products
parentede4b92846696806eeff5324da7b31196aee108f (diff)
downloadServo-c19241dc3812c92b150376c3c8108c3359aaf488.tar.gz
Servo-c19241dc3812c92b150376c3c8108c3359aaf488.tar.bz2
Servo-c19241dc3812c92b150376c3c8108c3359aaf488.zip
Added upload prices function
Diffstat (limited to 'servo/templates/products')
-rwxr-xr-xservo/templates/products/index.html2
-rw-r--r--servo/templates/products/upload_prices.html13
2 files changed, 15 insertions, 0 deletions
diff --git a/servo/templates/products/index.html b/servo/templates/products/index.html
index 24c4d5f..4b83383 100755
--- a/servo/templates/products/index.html
+++ b/servo/templates/products/index.html
@@ -36,6 +36,8 @@
<li class="divider"></li>
<li><a href="{% url 'products-download' group.slug %}">{% trans "Download Products" %}</a></li>
<li><a href="{% url 'products-get_inventory_report' %}">{% trans "Download Inventory Report" %}</a></li>
+ <li class="divider"></li>
+ <li><a href="{% url 'products-upload_prices' %}" data-modal="#modal">{% trans "Upload Prices" %}</a></li>
<li><a href="{% url 'products-upload_products' %}" data-modal="#modal">{% trans "Upload Products" %}</a></li>
<li><a href="{% url 'products-upload_gsx_parts' %}" data-modal="#modal">{% trans "Upload Parts Database" %}</a></li>
</ul>
diff --git a/servo/templates/products/upload_prices.html b/servo/templates/products/upload_prices.html
new file mode 100644
index 0000000..746842b
--- /dev/null
+++ b/servo/templates/products/upload_prices.html
@@ -0,0 +1,13 @@
+{% extends "modal.html" %}
+{% load i18n %}
+
+{% block header %}
+ {{ title }}
+{% endblock header %}
+
+{% block body %}
+<form method="post" action="{{ action }}" enctype="multipart/form-data" class="form-horizontal" accept-charset="utf-8">
+ {% csrf_token %}
+ {% include "form_snippet.html" %}
+</form>
+{% endblock body %}