From c879fcdbe1d898b200dccf734a29aa7f61421e82 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Sat, 11 Sep 2021 21:08:37 +0200 Subject: [PATCH] Improved import template --- advlabdb/templates/import.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/advlabdb/templates/import.html b/advlabdb/templates/import.html index 8e2a89b..4061415 100644 --- a/advlabdb/templates/import.html +++ b/advlabdb/templates/import.html @@ -1,9 +1,22 @@ +{% from "macros.html" import information %} {% extends "admin/master.html" %} {% block body %} +{{ information(current_user, userActiveSemester, role="admin") }} + +{% for error in form.file.errors %} +
+ Error! {{error}} +
+{% endfor %} +
{{ form.csrf_token }} + {{ form.file.label }} {{ form.file }} +
+
+ {{ form.file.description }}
{% endblock body %} \ No newline at end of file