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

Change register_printout-template to list of groups

parent d1465a0c
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -13,7 +13,7 @@
</tr>
</thead>
<tbody>
{% for day, documentations in documentations_by_day %}
{% for day, documentations in group.documentations_by_day %}
<tr class="
{% if doc.amends %}
{% if doc.amends.cancelled %}
......
......@@ -27,7 +27,7 @@
</thead>
<tbody>
{% for person in members %}
{% for person in group.members_with_stats %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ person.last_name }}</td>
......
......@@ -11,45 +11,47 @@
{% endblock %}
{% block content %}
{% if include_cover %}
{% include "alsijil/partials/register_cover.html" %}
{% endif %}
{% for group in groups %}
{% if include_cover %}
{% include "alsijil/partials/register_cover.html" %}
{% endif %}
<div class="page-break">&nbsp;</div>
<div class="page-break">&nbsp;</div>
{% if include_abbreviations %}
{% include "alsijil/partials/register_abbreviations.html" %}
{% endif %}
{% if include_abbreviations %}
{% include "alsijil/partials/register_abbreviations.html" %}
{% endif %}
<div class="page-break">&nbsp;</div>
<div class="page-break">&nbsp;</div>
{% if include_members_table %}
{% include "alsijil/partials/register_members_table.html" %}
{% endif %}
{% if include_members_table %}
{% include "alsijil/partials/register_members_table.html" %}
{% endif %}
<div class="page-break">&nbsp;</div>
<div class="page-break">&nbsp;</div>
{% if include_teachers_and_subjects_table %}
{% if group.courses %}
<h4>{% trans 'Teachers and lessons in group' %} {{ group.name }}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=[group] only %}
<div class="page-break">&nbsp;</div>
{% endif %}
{% if group.child_groups %}
<h4>{% trans 'Teachers and lessons in child groups' %}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group.child_groups only %}
<div class="page-break">&nbsp;</div>
{% endif %}
{% endif %}
{% if include_teachers_and_subjects_table %}
{% if group.courses %}
<h4>{% trans 'Teachers and lessons in group' %} {{ group.name }}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=[group] only %}
<div class="page-break">&nbsp;</div>
{% if include_person_overviews %}
{% for person in group.members_with_stats %}
{% include "alsijil/partials/person_overview.html with person=person only %}
<div class="page-break">&nbsp;</div>
{% endfor %}
{% endif %}
{% if group.child_groups %}
<h4>{% trans 'Teachers and lessons in child groups' %}</h4>
{% include "alsijil/partials/register_teachers_and_subjects_table.html" with groups=group.child_groups only %}
<div class="page-break">&nbsp;</div>
{% if include_coursebook %}
{% include "alsijil/partials/register_coursebook.html" %}
{% endif %}
{% endif %}
{% if include_person_overviews %}
{% for person in members %}
{% include "alsijil/partials/person_overview.html with person=person only %}
<div class="page-break">&nbsp;</div>
{% endfor %}
{% endif %}
{% if include_coursebook %}
{% include "alsijil/partials/register_coursebook.html" %}
{% endif %}
{% endfor %}
{% endblock %}
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