mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-12-20 23:41:20 +00:00
Indent templates
This commit is contained in:
parent
4ac2f6140a
commit
bb6edca943
12 changed files with 52 additions and 52 deletions
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/create.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/details.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/edit.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,11 +2,11 @@
|
|||
{% extends "admin/index.html" %}
|
||||
|
||||
{% 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 %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/list.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/create.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{ information(current_user, userActiveSemester, role="assistant") }}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/details.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/edit.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,11 +2,11 @@
|
|||
{% extends "admin/index.html" %}
|
||||
|
||||
{% 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 %}
|
|
@ -2,6 +2,6 @@
|
|||
{% extends "admin/model/list.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{{information(current_user, userActiveSemester, role="assistant")}}
|
||||
{{ super() }}
|
||||
{% endblock %}
|
|
@ -2,21 +2,21 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
{{information(current_user, userActiveSemester, role="admin")}}
|
||||
|
||||
{% for error in form.file.errors %}
|
||||
<div class="alert alert-danger">
|
||||
<strong>Error!</strong> {{ error }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% 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.csrf_token }}
|
||||
{{ form.file.label }}
|
||||
{{ form.file }}
|
||||
<input type="submit" value="Upload and import">
|
||||
<br>
|
||||
<br>
|
||||
{{ form.file.description }}
|
||||
</form>
|
||||
{% endblock body %}
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
{{ form.csrf_token }}
|
||||
{{ form.file.label }}
|
||||
{{ form.file }}
|
||||
<input type="submit" value="Upload and import">
|
||||
<br>
|
||||
<br>
|
||||
{{ form.file.description }}
|
||||
</form>
|
||||
{% endblock body %}
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
{% 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")) %}
|
||||
| <a href="{{ url_for('index') }}assistant">Assistant space</a>.
|
||||
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
||||
| <a href="{{ url_for('index') }}admin">Admin space</a>.
|
||||
{% endif %}
|
||||
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
||||
| <a href="{{ url_for('index') }}assistant">Assistant space</a>.
|
||||
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
||||
| <a href="{{ url_for('index') }}admin">Admin space</a>.
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro missing_final_experiment_marks(number_of_missing_final_experiment_marks, number_of_all_experiment_marks) %}
|
||||
<p>
|
||||
Number of <strong>missing</strong> 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_missing_final_experiment_marks }} / {{ number_of_all_experiment_marks }}
|
||||
</p>
|
||||
{% endmacro %}
|
Loading…
Reference in a new issue