From ffb4c3203d6e9a3fb3a405bbf30961b490068bb3 Mon Sep 17 00:00:00 2001 From: Michael Bauer <michael-bauer@posteo.de> Date: Tue, 5 Nov 2024 14:12:41 +0100 Subject: [PATCH] Move page-breaks into conditionals --- .../templates/alsijil/print/register_for_group.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html b/aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html index 1de85d47a..6d763b7e3 100644 --- a/aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html +++ b/aleksis/apps/alsijil/templates/alsijil/print/register_for_group.html @@ -14,22 +14,19 @@ {% for group in groups %} {% if include_cover %} {% include "alsijil/partials/register_cover.html" %} + <div class="page-break"> </div> {% endif %} - <div class="page-break"> </div> - {% if include_abbreviations %} {% include "alsijil/partials/register_abbreviations.html" %} + <div class="page-break"> </div> {% endif %} - <div class="page-break"> </div> - {% if include_members_table %} {% include "alsijil/partials/register_members_table.html" %} + <div class="page-break"> </div> {% endif %} - <div class="page-break"> </div> - {% if include_teachers_and_subjects_table %} {% if group.courses %} <h4>{% trans 'Teachers and lessons in group' %} {{ group.name }}</h4> -- GitLab