fixed print format

This commit is contained in:
2021-06-05 16:06:02 +02:00
parent f4f4ed3220
commit c45d880b8e
3 changed files with 9 additions and 6 deletions

View File

@ -4,8 +4,9 @@
<div class="w3-responsive">
{% for a in aufgaben %}
<table class="w3-left" width="auto"><tr><td class="w3-right-align" style="width: 5em">{{ a }}</td><td> = </td><td class="w3-border-bottom" style="width: 5em; height: 2em"></td></tr></table>
{% if loop.index % 80 == 0 %}
<div style="break-after: page;"></div>
{% if (loop.index % 80 == 0) and (not loop.last) %}
<div style="break-after: page; clear: both;"></div>
<div style="margin-bottom: 3em"></div>
{% endif %}
{% endfor %}
</div>

View File

@ -9,14 +9,14 @@
{% block head %}<title>Rechentrainer</title>{% endblock %}
</head>
<body>
<header class="w3-container w3-bottombar w3-border-blue-grey w3-light-grey">
<header class="w3-container w3-border-bottom w3-border-blue-grey w3-light-grey w3-margin-bottom" style="position: fixed; top: 0; width: 100vw; height: 3em">
{% block header %}<span><a class="w3-button" href="/"><i class="material-icons w3-xlarge">home</i></a>Rechentrainer</span>{% endblock %}
</header>
<div class="w3-container" style="margin-bottom: 1.5em;">
<div class="w3-container" style="margin-top: 4em; margin-bottom:3em">
{% block content %}{% endblock %}
</div>
<footer class="w3-container w3-topbar w3-light-grey w3-border-blue-grey w3-center" style="position: fixed; bottom: 0; width: 100vw; height: 2em">
{% block footer %}<span>{{ request.base_url }}</span>{% endblock %}
<footer class="w3-container w3-border-top w3-light-grey w3-border-blue-grey w3-center" style="position: fixed; bottom: 0; width: 100vw; height: auto">
{% block footer %}<div class="w3-small">{{ request.base_url }}</div>{% endblock %}
</footer>
</body>
</html>