2021-09-11 19:08:37 +00:00
|
|
|
{% from "macros.html" import information %}
|
2021-09-11 18:53:11 +00:00
|
|
|
{% extends "admin/master.html" %}
|
|
|
|
|
|
|
|
{% block body %}
|
2021-09-11 19:08:37 +00:00
|
|
|
{{ information(current_user, userActiveSemester, role="admin") }}
|
|
|
|
|
|
|
|
{% for error in form.file.errors %}
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<strong>Error!</strong> {{error}}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
2021-09-11 18:53:11 +00:00
|
|
|
<form method="POST" enctype="multipart/form-data">
|
|
|
|
{{ form.csrf_token }}
|
2021-09-11 19:08:37 +00:00
|
|
|
{{ form.file.label }}
|
2021-09-11 18:53:11 +00:00
|
|
|
{{ form.file }}
|
|
|
|
<input type="submit" value="Upload and import">
|
2021-09-11 19:08:37 +00:00
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
{{ form.file.description }}
|
2021-09-11 18:53:11 +00:00
|
|
|
</form>
|
|
|
|
{% endblock body %}
|