{% extends 'base.html' %}

{% block content %}
<div class="w3-responsive">
    {% for a in aufgaben %}
            <table class="w3-left" width="auto"><tr><td class="w3-right-align" style="width: 7em">{{ a.a }} {% if a.t.typ == '*' %}&middot;{% elif a.t.typ == '/'%}:{% else %}{{ a.t.typ }}{% endif %} {{ a.b }}{{ a.c }}</td><td> = </td><td class="w3-border-bottom" style="width: 5em; height: 2em"></td></tr></table>
            {% if (loop.index % maxPerPage == 0) and (not loop.last) %} 
            <div style="break-after: page; clear: both;"></div>
            <div style="margin-bottom: 3em"></div>
            {% endif %}
    {% endfor %}
</div>
{% endblock %}