diff options
author | keroth <keroth@janssen-jan.de> | 2015-05-10 00:10:26 +0200 |
---|---|---|
committer | keroth <keroth@janssen-jan.de> | 2015-05-10 00:10:26 +0200 |
commit | c7fd8c443357879aab51134e6679ace45baec103 (patch) | |
tree | 29b8e55b352ea8b22207cc6bb8b9ebb8d97745a9 /inventar/templates/upload.html | |
parent | b518d7011419a3c9e5d2352eab21020cb6031d29 (diff) | |
download | ktt-inventory-system-c7fd8c443357879aab51134e6679ace45baec103.tar.bz2 |
Added file support
Diffstat (limited to 'inventar/templates/upload.html')
-rw-r--r-- | inventar/templates/upload.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/inventar/templates/upload.html b/inventar/templates/upload.html new file mode 100644 index 0000000..5371020 --- /dev/null +++ b/inventar/templates/upload.html @@ -0,0 +1,20 @@ +{% 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 }} + {% endfor %} + {% for code in data %} + </li> + {% endfor %} + </ul> + {% endif %} +{% endblock %} |