1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-22 23:51:03 +00:00
AdvLabDB/advlabdb/templates/actions.jinja.html

26 lines
721 B
HTML

{% from "macros.jinja.html" import information %}
{% extends "admin/master.html" %}
{% block body %}
{{ information(current_user, active_semester_str, role="admin") }}
<hr>
<form method="POST">
{% for field in form %}
{% if field.widget.input_type == "checkbox" %}
<div class="form-check">
{{ field(class="form-check-input") }}
<label class="form-check-label" for="{{ field.id }}">
{{ field.label }}
</label>
</div>
{% else %}
{{ field() }}
{% endif %}
{% endfor %}
</form>
{{ footer|safe }}
{% endblock body %}