mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2025-03-19 19:56:25 +00:00
Format templates
This commit is contained in:
parent
6edb47fed9
commit
8846a867f5
6 changed files with 93 additions and 82 deletions
|
@ -2,7 +2,7 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_str, role="admin")}}
|
||||
{{ information(current_user, active_semester_str, role="admin")}}
|
||||
|
||||
<hr>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_str, role="admin")}}
|
||||
{{ information(current_user, active_semester_str, role="admin")}}
|
||||
|
||||
<hr>
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
|||
<hr>
|
||||
|
||||
{% for histInd in histIndices %}
|
||||
<img src="data:image/png;base64,{{oralMarkHists[histInd]}}">
|
||||
<img src="data:image/png;base64,{{protocolMarkHists[histInd]}}">
|
||||
<img src="data:image/png;base64,{{ oralMarkHists[histInd]}}">
|
||||
<img src="data:image/png;base64,{{ protocolMarkHists[histInd]}}">
|
||||
<hr>
|
||||
{% endfor %}
|
||||
{% endblock body %}
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
{% extends "admin/master.html" %}
|
||||
|
||||
{% block body %}
|
||||
{{information(current_user, active_semester_str, role="admin")}}
|
||||
{{ information(current_user, active_semester_str, role="admin")}}
|
||||
|
||||
<hr>
|
||||
|
||||
{% for activeSemesterFinalPartMarksHist in activeSemesterFinalPartMarksHists %}
|
||||
<img src="data:image/png;base64,{{activeSemesterFinalPartMarksHist}}">
|
||||
<img src="data:image/png;base64,{{ activeSemesterFinalPartMarksHist }}">
|
||||
<hr>
|
||||
{% endfor %}
|
||||
|
||||
<img src="data:image/png;base64,{{meanFinalPartMarksPlot}}">
|
||||
<img src="data:image/png;base64,{{ meanFinalPartMarksPlot }}">
|
||||
{% endblock body %}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
<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() }}
|
||||
|
||||
|
|
|
@ -1,84 +1,84 @@
|
|||
<div class="alert alert-warning" role="alert">
|
||||
Changes have been done to the web interface. Read the section
|
||||
<a href="#_group_experiment">Group Experiment</a> for more information.
|
||||
Changes have been done to the web interface. Read the section
|
||||
<a href="#_group_experiment">Group Experiment</a> for more information.
|
||||
</div>
|
||||
|
||||
<h2>Welcome</h2>
|
||||
<p>
|
||||
Welcome to this website, AdvLabDB, where you will be able to manage your lab
|
||||
assistance. Please, <strong>read this documentation</strong> to familiarize
|
||||
yourself with this website.
|
||||
Welcome to this website, AdvLabDB, where you will be able to manage your lab
|
||||
assistance. Please, <strong>read this documentation</strong> to familiarize
|
||||
yourself with this website.
|
||||
</p>
|
||||
|
||||
<h2>Menu items</h2>
|
||||
<p>
|
||||
In this section, you will find explanations to each menu item on the upper
|
||||
navigation bar.
|
||||
In this section, you will find explanations to each menu item on the upper
|
||||
navigation bar.
|
||||
</p>
|
||||
|
||||
<h3>Home</h3>
|
||||
<p>
|
||||
This is your home page. Here, you currently only find the number of
|
||||
<strong>missing</strong> final experiment marks for the experiments that you
|
||||
are assigned to. At the latest at the end of the semester, this number should
|
||||
be 0. A number higher than 0 means that some oral and/or protocol marks are
|
||||
missing. The final experiment mark is calculated automatically after the oral
|
||||
and protocol marks of an experiment are set.
|
||||
This is your home page. Here, you currently only find the number of
|
||||
<strong>missing</strong> final experiment marks for the experiments that you
|
||||
are assigned to. At the latest at the end of the semester, this number should
|
||||
be 0. A number higher than 0 means that some oral and/or protocol marks are
|
||||
missing. The final experiment mark is calculated automatically after the oral
|
||||
and protocol marks of an experiment are set.
|
||||
</p>
|
||||
|
||||
<h3 id="_group_experiment">Group Experiment</h3>
|
||||
<p>
|
||||
This is the most important menu item. Here, you see all pairs of experiments
|
||||
and groups that you are responsible for. If a value in the column
|
||||
<em>Experiment Marks Missing</em> is <span style="color: red">Yes</span>, then
|
||||
you did not set all the experiment marks for the pair in the related row. If
|
||||
you click on the edit button on the left side of a row, then you will get a
|
||||
form.
|
||||
This is the most important menu item. Here, you see all pairs of experiments
|
||||
and groups that you are responsible for. If a value in the column
|
||||
<em>Experiment Marks Missing</em> is <span style="color: red">Yes</span>, then
|
||||
you did not set all the experiment marks for the pair in the related row. If
|
||||
you click on the edit button on the left side of a row, then you will get a
|
||||
form.
|
||||
</p>
|
||||
<p>
|
||||
In the form, you can edit the <em>date</em> of an appointment by clicking on
|
||||
it. You should do so after writing with the students doing the experiment
|
||||
corresponding to the appointment. The initial date you find before editing it
|
||||
is only a suggestion in the week where the appointment should take place.
|
||||
Please take take into account if the appointment should be in the semester
|
||||
break.
|
||||
In the form, you can edit the <em>date</em> of an appointment by clicking on
|
||||
it. You should do so after writing with the students doing the experiment
|
||||
corresponding to the appointment. The initial date you find before editing it
|
||||
is only a suggestion in the week where the appointment should take place.
|
||||
Please take take into account if the appointment should be in the semester
|
||||
break.
|
||||
</p>
|
||||
<p>
|
||||
Below the appointments in the form, you can set the students' oral and
|
||||
protocol marks. Students in a group have separate marks. The oral mark has to
|
||||
be set after the oral exam. The protocol mark has to be set after correcting
|
||||
the group's protocol.
|
||||
Below the appointments in the form, you can set the students' oral and
|
||||
protocol marks. Students in a group have separate marks. The oral mark has to
|
||||
be set after the oral exam. The protocol mark has to be set after correcting
|
||||
the group's protocol.
|
||||
</p>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Oral and protocol marks are between 0 and 15!
|
||||
Oral and protocol marks are between 0 and 15!
|
||||
</div>
|
||||
<p>
|
||||
After editing appointment date(s) or experiment marks, click on the
|
||||
<em>Save</em> button to save the changes.
|
||||
After editing appointment date(s) or experiment marks, click on the
|
||||
<em>Save</em> button to save the changes.
|
||||
</p>
|
||||
<p>
|
||||
The changes are lost if you don't click on <em>Save</em>. Therefore, if you
|
||||
want to discard the changes, just click on the back button of your browser.
|
||||
The changes are lost if you don't click on <em>Save</em>. Therefore, if you
|
||||
want to discard the changes, just click on the back button of your browser.
|
||||
</p>
|
||||
|
||||
<h3>User</h3>
|
||||
<p>
|
||||
Here, you find a table with only one row which is you as a user. Make sure
|
||||
that the fields <em>Phone Number</em>, <em>Mobile Phone Number</em>,
|
||||
<em>Building</em> and <em>Room</em> are filled and up to date, especially if
|
||||
you are a new assistant. To edit these fields, click on the pen icon at the
|
||||
left of the single entry in the table. After editing, click on <em>Save</em>.
|
||||
Here, you find a table with only one row which is you as a user. Make sure
|
||||
that the fields <em>Phone Number</em>, <em>Mobile Phone Number</em>,
|
||||
<em>Building</em> and <em>Room</em> are filled and up to date, especially if
|
||||
you are a new assistant. To edit these fields, click on the pen icon at the
|
||||
left of the single entry in the table. After editing, click on <em>Save</em>.
|
||||
</p>
|
||||
<p>
|
||||
You can generate a new random password by clicking on the pen icon, checking
|
||||
the corresponding checkbox and then clicking on
|
||||
<em>Save</em>. You will be then logged out. Your new password is displayed
|
||||
above the login fields. Make sure that you save the password in a safe place.
|
||||
Using a free open source password manager like
|
||||
<a href="https://bitwarden.com/" target="_blank" rel="noopener">Bitwarden</a>
|
||||
or
|
||||
<a href="https://keepassxc.org/" target="_blank" rel="noopener">KeepassXC</a>
|
||||
is recommended.
|
||||
You can generate a new random password by clicking on the pen icon, checking
|
||||
the corresponding checkbox and then clicking on
|
||||
<em>Save</em>. You will be then logged out. Your new password is displayed
|
||||
above the login fields. Make sure that you save the password in a safe place.
|
||||
Using a free open source password manager like
|
||||
<a href="https://bitwarden.com/" target="_blank" rel="noopener">Bitwarden</a>
|
||||
or
|
||||
<a href="https://keepassxc.org/" target="_blank" rel="noopener">KeepassXC</a>
|
||||
is recommended.
|
||||
</p>
|
||||
|
||||
<h3>Docs</h3>
|
||||
|
@ -86,13 +86,13 @@
|
|||
|
||||
<h3>Active semester</h3>
|
||||
<p>
|
||||
An active semester is the semester you are working in. All shown experiment
|
||||
marks and appointments are in your active semester. By default as a new
|
||||
assistant, your active semester should be the latest semester.
|
||||
An active semester is the semester you are working in. All shown experiment
|
||||
marks and appointments are in your active semester. By default as a new
|
||||
assistant, your active semester should be the latest semester.
|
||||
</p>
|
||||
<p>
|
||||
If you see a warning that you are in an old semester, click on
|
||||
<em>Active semester</em> and choose the latest semester. You should only work
|
||||
in an old semester if there are still experiment marks to be set in the old
|
||||
semester.
|
||||
If you see a warning that you are in an old semester, click on
|
||||
<em>Active semester</em> and choose the latest semester. You should only work
|
||||
in an old semester if there are still experiment marks to be set in the old
|
||||
semester.
|
||||
</p>
|
||||
|
|
|
@ -1,20 +1,31 @@
|
|||
{% macro information(current_user, active_semester_str, role) %} User:
|
||||
<a
|
||||
href="{{ url_for('main.index') }}{{ role }}/user/edit/?id={{ current_user.id }}"
|
||||
>{{ current_user }}</a
|
||||
>
|
||||
|
||||
| Active semester: {{ active_semester_str() }} {% if (role == "admin") and
|
||||
(current_user.has_role("assistant")) %} |
|
||||
<a href="{{ url_for('main.index') }}assistant">Assistant space</a>. {% elif
|
||||
(role == "assistant") and (current_user.has_role("admin")) %} |
|
||||
<a href="{{ url_for('main.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>
|
||||
{% macro information(current_user, active_semester_str, role) %}
|
||||
User:
|
||||
<a
|
||||
href="{{ url_for('main.index') }}{{ role }}/user/edit/?id={{ current_user.id }}"
|
||||
>
|
||||
{{ current_user }}
|
||||
</a>
|
||||
| Active semester: {{ active_semester_str() }}
|
||||
{% if (role == "admin") and (current_user.has_role("assistant")) %}
|
||||
|
|
||||
<a
|
||||
href="{{ url_for('main.index') }}assistant"
|
||||
>
|
||||
Assistant space
|
||||
</a>.
|
||||
{% elif (role == "assistant") and (current_user.has_role("admin")) %}
|
||||
|
|
||||
<a
|
||||
href="{{ url_for('main.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>
|
||||
{% endmacro %}
|
||||
|
|
Loading…
Add table
Reference in a new issue