mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Improved import template
This commit is contained in:
parent
72420615b0
commit
c879fcdbe1
1 changed files with 13 additions and 0 deletions
|
@ -1,9 +1,22 @@
|
||||||
|
{% from "macros.html" import information %}
|
||||||
{% extends "admin/master.html" %}
|
{% extends "admin/master.html" %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
{{ information(current_user, userActiveSemester, role="admin") }}
|
||||||
|
|
||||||
|
{% for error in form.file.errors %}
|
||||||
|
<div class="alert alert-danger">
|
||||||
|
<strong>Error!</strong> {{error}}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
<form method="POST" enctype="multipart/form-data">
|
<form method="POST" enctype="multipart/form-data">
|
||||||
{{ form.csrf_token }}
|
{{ form.csrf_token }}
|
||||||
|
{{ form.file.label }}
|
||||||
{{ form.file }}
|
{{ form.file }}
|
||||||
<input type="submit" value="Upload and import">
|
<input type="submit" value="Upload and import">
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
{{ form.file.description }}
|
||||||
</form>
|
</form>
|
||||||
{% endblock body %}
|
{% endblock body %}
|
Loading…
Reference in a new issue