Skip to content
Snippets Groups Projects
Commit a06da45a authored by permcu's avatar permcu
Browse files

Fix register_printout-templates

parent 080a56f6
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
Pipeline #193647 failed
......@@ -122,7 +122,7 @@
</thead>
<tbody>
{% for note in person.new_personal_notes %}
{% for note in person.new_personal_notes.all %}
<tr>
<td>{{ note.documentation.datetime_start.date }}</td>
<td>
......
......@@ -15,7 +15,7 @@
</tr>
</thead>
<tbody>
{% for day, documentations in group.documentations_by_day %}
{% for day, documentations in group.documentations_by_day.items %}
<tr class="
{% if doc.amends %}
{% if doc.amends.cancelled %}
......@@ -68,7 +68,7 @@
({{ participation.tardiness }}′)
</span>
{% endif %}
{% for personal_note in doc.personal_notes %}
{% for personal_note in doc.personal_notes.all %}
{% if personal_note.extra_mark %}
<span>
{{ personal_note.person.short_name }}
......
......@@ -28,14 +28,14 @@
{% endif %}
{% if include_teachers_and_subjects_table %}
{% if group.courses %}
{% if group.courses.all %}
<h4>{% trans 'Teachers and lessons in group' %} {{ group.name }}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group.as_list only %}
<div class="page-break">&nbsp;</div>
{% endif %}
{% if group.child_groups %}
{% if group.child_groups.all %}
<h4>{% trans 'Teachers and lessons in child groups' %}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group.child_groups only %}
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group.child_groups.all only %}
<div class="page-break">&nbsp;</div>
{% endif %}
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment