Release - Upload
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
{% extends 'pruefplan/tableBase.html' %}
|
||||
|
||||
{% block title %}Prüfungsplan - Ansicht Prüfungen{% endblock %}
|
||||
|
||||
{% block additionalScript %}
|
||||
<script>
|
||||
$.fn.dataTable.moment( 'DD.MM.YYYY HH:mm' );
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block table %}
|
||||
|
||||
<h3>Prüfungsplan - Ansicht Prüfungen</h3>
|
||||
|
||||
<div class="container mb-3 mt-3" >
|
||||
<table id="examTable" class="display" style="width: 100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>Wochentag</th>
|
||||
<th>Fachkennung</th>
|
||||
<th>Fächer</th>
|
||||
<th>Fächerbezeichnung</th>
|
||||
<th>Teilprüfung</th>
|
||||
<th>Aufsichtsperson</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for ex in exams %}
|
||||
<tr>
|
||||
<td>{{ ex.date|date:"d.m.Y" }} {{ ex.time|date:"H:i" }}</td>
|
||||
<td>{{ ex.weekday }}</td>
|
||||
<td>
|
||||
{% for partialExam in ex.partialexam_set.all %}
|
||||
{% for subject in partialExam.subjectIds.all %}
|
||||
{{ subject.initials }}<br/>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for partialExam in ex.partialexam_set.all %}
|
||||
{{ partialExam.identification }} <br/>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for partialExam in ex.partialexam_set.all %}
|
||||
{% for subject in partialExam.subjectIds.all %}
|
||||
{{ subject.name }}<br/>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td>
|
||||
{% for partialExam in ex.partialexam_set.all %}
|
||||
{% for subject in partialExam.subjectIds.all %}
|
||||
{{ subject.identification }}<br/>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{% for supervisor in supervisorSetDict|get_item:ex.identification %}
|
||||
{{ supervisor }}<br/>
|
||||
{% endfor %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$('#examTable').DataTable({
|
||||
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
|
||||
"language": { url: '//cdn.datatables.net/plug-ins/1.10.24/i18n/German.json'}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user