Rechentrainer/templates/generator.html
2021-06-06 13:54:25 +02:00

40 lines
1.6 KiB
HTML

{% extends 'base.html' %}
{% block content %}
<div class="w3-display-container">
<form method="POST">
<table>
<tr>
<td class="w3-cell-top">
<fieldset>
<legend>Multiplikation (a &middot; b = x)</legend>
{% for r in reihen.query.filter_by(typ = '*').order_by(reihen.id).all() %}
<input type="checkbox" name="rechenreihen" value="{{ r.id }}"> {{ r.name }}<br/>
{% endfor %}
</fieldset>
</td>
<td class="w3-cell-top">
<fieldset>
<legend>Division (a : b = x)</legend>
{% for r in reihen.query.filter_by(typ = '/').order_by(reihen.id).all() %}
<input type="checkbox" name="rechenreihen" value="{{ r.id }}"> {{ r.name }}<br/>
{% endfor %}
</fieldset>
</td>
</tr>
</table>
<label for="gemischteAufgaben">gemischte Aufgaben</label>
<input type="checkbox" name="gemischteAufgaben" value="1">
<br/>
<label for="anzahl">max. Aufgaben: </label>
<select name="anzahl">
<option value="">Alle</option>
<option value="80">80</option>
<option value="40">40</option>
<option value="20">20</option>
</select>
<br/>
<input type="submit" value="zum Arbeitsblatt">
</form>
</div>
{% endblock %}