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

183 lines
6.1 KiB
HTML
Raw Normal View History

2022-09-11 12:55:53 +00:00
{% from "macros.jinja.html" import information %}
2022-06-20 01:08:57 +00:00
{% extends "admin/master.html" %}
{% block body %}
{{ information(current_user, active_semester_str, role="assistant") }}
<hr>
2022-09-19 13:49:57 +00:00
<div class="d-inline-flex">
<table class="table table-bordered">
<tbody>
<tr>
<th scope="row">
Group number
</th>
<td>
{{ group_number }}
</td>
</tr>
</tbody>
</table>
</div>
<br>
2022-06-20 01:08:57 +00:00
<div class="d-inline-flex">
<table class="table table-bordered">
<tbody>
<tr>
<th scope="row">
Experiment
</th>
<td>
2022-09-19 13:49:57 +00:00
{{ semester_experiment.experiment.str() }}
2022-06-20 01:08:57 +00:00
</td>
</tr>
<tr>
<th scope="row">
2022-09-19 13:49:57 +00:00
Oral mark weighting
2022-06-20 01:08:57 +00:00
</th>
<td>
2022-09-19 13:49:57 +00:00
{{ semester_experiment.oral_weighting }}
</td>
</tr>
<tr>
<th scope="row">
Protocol mark weighting
</th>
<td>
{{ semester_experiment.protocol_weighting }}
</td>
</tr>
<tr>
<th scope="row">
Final experiment mark weighting
</th>
<td>
{{ semester_experiment.final_weighting }}
2022-06-20 01:08:57 +00:00
</td>
</tr>
</tbody>
</table>
</div>
<br>
<form method="POST">
{{ form.csrf_token }}
<div class="d-inline-flex">
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr>
<th scope="col">
Appointment date
</th>
<th scope="col">
Should be in break
</th>
</tr>
</thead>
<tbody>
{% for appointment_field in appointment_fields %}
<tr>
<td>
{{ appointment_field }}
</td>
<td>
{{ appointment_field.description }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<br>
2022-06-27 20:13:35 +00:00
<div class="table-responsive">
2022-06-20 01:08:57 +00:00
<table class="table table-striped table-bordered">
<thead class="thead-dark">
<tr>
<th scope="col">
Student
</th>
<th scope="col">
Oral mark
</th>
<th scope="col">
Protocol mark
</th>
2022-06-27 20:13:35 +00:00
<th scope="col">
Final experiment mark¹
</th>
<th scope="col">
University email
</th>
<th scope="col">
Contact email²
</th>
2022-06-20 01:08:57 +00:00
</tr>
</thead>
<tbody>
2022-06-27 20:13:35 +00:00
{% for student, oral_experiment_mark, protocol_experiment_mark, final_experiment_mark in experiment_mark_zip %}
2022-06-20 01:08:57 +00:00
<tr>
<th scope="row">
{{ student }}
</th>
<td>
{{ oral_experiment_mark }}
</td>
<td>
{{ protocol_experiment_mark }}
</td>
2022-06-27 20:13:35 +00:00
<td>
{% if final_experiment_mark is none %}
2022-06-28 01:53:17 +00:00
<span style='color: red;'><strong>None</strong></span>
2022-06-27 20:13:35 +00:00
{% else %}
{{ final_experiment_mark }}
{% endif %}
</td>
<td>
2022-06-30 01:55:23 +00:00
<a href="mailto:{{ student.uni_email }}">{{ student.uni_email }}</a>
2022-06-27 20:13:35 +00:00
</td>
<td>
2022-06-30 01:55:23 +00:00
{% if student.contact_email is not none %}
<a href="mailto:{{ student.contact_email }}">{{ student.contact_email }}</a>
{% endif %}
2022-06-27 20:13:35 +00:00
</td>
2022-06-20 01:08:57 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
<br>
2022-06-26 22:20:56 +00:00
<div class="form-group form-row">
2022-06-27 20:13:35 +00:00
<label for={{ form.note.id }} class="col-form-label">{{ form.note.label }}³</label>
2022-06-26 22:20:56 +00:00
<div class="col">
{{ form.note }}
</div>
2022-06-20 01:08:57 +00:00
</div>
2022-06-28 01:53:17 +00:00
<br>
2022-06-27 20:13:35 +00:00
{{ form.submit }}
</form>
2022-06-26 20:31:39 +00:00
2022-06-27 20:13:35 +00:00
<hr>
2022-06-20 01:08:57 +00:00
2022-06-27 20:13:35 +00:00
<font size="2">
2022-06-27 20:40:29 +00:00
<p>1. The <em>final experiment mark</em> is calculated automatically with the oral and protocol marks and experiment specific weightings.</p>
<p>2. The <em>contact email</em> is the preferred email address for contact if entered by the student.</p>
<p>3. The <em>note</em> is optional and can be seen and edited by admins and assistants that are responsible for this experiment in this semester.
It is for information related to the experiment and group.
Examples: Protocol received, submission until ..., etc.</p>
2022-06-27 20:13:35 +00:00
</font>
2022-06-28 01:53:17 +00:00
2022-06-20 01:08:57 +00:00
{{ footer|safe }}
{% endblock body %}