1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-20 23:41:20 +00:00

Indent templates

This commit is contained in:
Mo 2022-03-19 22:21:45 +01:00
parent 4ac2f6140a
commit bb6edca943
12 changed files with 52 additions and 52 deletions

View file

@ -2,6 +2,6 @@
{% extends "admin/model/create.html" %} {% extends "admin/model/create.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/details.html" %} {% extends "admin/model/details.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/edit.html" %} {% extends "admin/model/edit.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,11 +2,11 @@
{% extends "admin/index.html" %} {% extends "admin/index.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
<hr> <hr>
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}} {{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/list.html" %} {% extends "admin/model/list.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/create.html" %} {% extends "admin/model/create.html" %}
{% block body %} {% block body %}
{{ information(current_user, userActiveSemester, role="assistant") }} {{information(current_user, userActiveSemester, role="assistant")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/details.html" %} {% extends "admin/model/details.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="assistant")}} {{information(current_user, userActiveSemester, role="assistant")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/edit.html" %} {% extends "admin/model/edit.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="assistant")}} {{information(current_user, userActiveSemester, role="assistant")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,11 +2,11 @@
{% extends "admin/index.html" %} {% extends "admin/index.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="assistant")}} {{information(current_user, userActiveSemester, role="assistant")}}
<hr> <hr>
{{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}} {{missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks)}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,6 +2,6 @@
{% extends "admin/model/list.html" %} {% extends "admin/model/list.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="assistant")}} {{information(current_user, userActiveSemester, role="assistant")}}
{{ super() }} {{ super() }}
{% endblock %} {% endblock %}

View file

@ -2,21 +2,21 @@
{% extends "admin/master.html" %} {% extends "admin/master.html" %}
{% block body %} {% block body %}
{{information(current_user, userActiveSemester, role="admin")}} {{information(current_user, userActiveSemester, role="admin")}}
{% for error in form.file.errors %} {% for error in form.file.errors %}
<div class="alert alert-danger"> <div class="alert alert-danger">
<strong>Error!</strong> {{ error }} <strong>Error!</strong> {{ error }}
</div> </div>
{% endfor %} {% 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.label }}
{{ form.file }} {{ form.file }}
<input type="submit" value="Upload and import"> <input type="submit" value="Upload and import">
<br> <br>
<br> <br>
{{ form.file.description }} {{ form.file.description }}
</form> </form>
{% endblock body %} {% endblock body %}

View file

@ -1,18 +1,18 @@
{% macro information(current_user, userActiveSemester, role) %} {% macro information(current_user, userActiveSemester, role) %}
User: <a href="{{ url_for('index') }}{{ role }}/user/details/?id={{ current_user.id }}">{{ current_user.repr() }}</a> User: <a href="{{ url_for('index') }}{{ role }}/user/details/?id={{ current_user.id }}">{{ current_user.repr() }}</a>
| Active semester: {{ userActiveSemester(flashWarning=True).repr() }} | Active semester: {{ userActiveSemester(flashWarning=True).repr() }}
{% if (role == "admin") and (current_user.has_role("assistant")) %} {% if (role == "admin") and (current_user.has_role("assistant")) %}
| <a href="{{ url_for('index') }}assistant">Assistant space</a>. | <a href="{{ url_for('index') }}assistant">Assistant space</a>.
{% elif (role == "assistant") and (current_user.has_role("admin")) %} {% elif (role == "assistant") and (current_user.has_role("admin")) %}
| <a href="{{ url_for('index') }}admin">Admin space</a>. | <a href="{{ url_for('index') }}admin">Admin space</a>.
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% macro missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) %} {% macro missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) %}
<p> <p>
Number of <strong>missing</strong> final experiment marks: Number of <strong>missing</strong> final experiment marks:
{{ number_of_missing_final_experiment_marks }} / {{ number_of_all_experiment_marks }} {{ number_of_missing_final_experiment_marks }} / {{ number_of_all_experiment_marks }}
</p> </p>
{% endmacro %} {% endmacro %}