Zmiana nazwy project -> platforma.
[redakcja.git] / platforma / templates / explorer / file_upload.html
diff --git a/platforma/templates/explorer/file_upload.html b/platforma/templates/explorer/file_upload.html
new file mode 100755 (executable)
index 0000000..1deedac
--- /dev/null
@@ -0,0 +1,17 @@
+{% extends "base.html" %}
+
+{% block maincontent %}
+<h2>Dodawanie nowego utworu:</h2>
+
+{% if errors %}
+<div class="errorlist">
+{% for error in errors %}
+<p>{{ error }}: {{ error.errors }}</p>
+{% endfor %}
+</div>
+{% endif %}
+<form action="{% url file_upload %}" method="POST" enctype="multipart/form-data">
+    {{ bookform.as_p }}
+    <p><button type="submit">Dodaj książkę</button></p>
+</form>
+{% endblock maincontent %}