summaryrefslogtreecommitdiffstats
path: root/inventar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'inventar/templates')
-rw-r--r--inventar/templates/base.html1
-rw-r--r--inventar/templates/upload.html17
2 files changed, 18 insertions, 0 deletions
diff --git a/inventar/templates/base.html b/inventar/templates/base.html
index a97ed7e..8304687 100644
--- a/inventar/templates/base.html
+++ b/inventar/templates/base.html
@@ -16,6 +16,7 @@
<li><a href="{% url "home" %}"><img src="/static/home.svg" width="24" height="24" /> {% trans "Home" %}</a></li>
<li><a href="{% url "admin:index" %}"><img src="/static/admin.svg" width="24" height="24" /> {% trans "Admin Area" %}</a></li>
<li><a href="{% url "stats" %}"><img src="/static/stats.svg" width="24" height="24" /> {% trans "Statistics" %}</a></li>
+ <li><a href="{% url "upload" %}"><img src="/static/stats.svg" width="24" height="24" /> {% trans "Upload" %}</a></li>
<li><br></li>
<li>{% trans "Search Item" %}:
<ul>
diff --git a/inventar/templates/upload.html b/inventar/templates/upload.html
new file mode 100644
index 0000000..29a2dbe
--- /dev/null
+++ b/inventar/templates/upload.html
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block content %}
+ {% if user.is_authenticated %}
+ <h2>Upload new Parent Tree:</h2>
+
+ <form enctype="multipart/form-data" method="post" action="/upload/">{% csrf_token %}
+ {{form}}
+ <input type="submit" value="Submit" />
+ <ul class="path">
+ {% for code in data %}
+ <li>{{ code }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% endblock %}