rocket_page/templates/add_klasse_form.hbs
2020-08-12 21:26:59 +02:00

46 lines
1.0 KiB
Handlebars

{{#* inline "page"}}
<h1>Klassen</h1>
<table>
<tr>
<th>Klasse</th>
<th>Titel</th>
<th>Priorität</th>
<th>Operation</th>
</tr>
{{#each klassen}}
<tr>
<td>{{ this.stufe }}{{this.gruppe}}</td>
<td>{{this.titel}}</td>
<td>{{this.ordnung}}</td>
<td><a href="/admin/delete/klasse/{{this.klassen_id}}">löschen</a></td>
</tr>
{{/each}}
</table>
<h1>Klasse hinzu fügen</h1>
<form action="/admin/add/klasse" method="post" accept-charset="utf-8">
<table>
<tr>
<th>Stufe:</th>
<td><input type="number" name="stufe"></td>
</tr>
<tr>
<th>Teil:</th>
<td><input type="text" name="gruppe"></td>
</tr>
<tr>
<th>Titel:</th>
<td><input type="text" name="titel"></td>
</tr>
<tr>
<th>Ordnung:</th>
<td><input type="number" name="ordnung"></td>
</tr>
<tr>
<th></th>
<td><input type="submit" value="Klasse Erstellen"></td>
</tr>
</table>
</form>
{{/inline}}
{{! remove whitespaces with ~ }}
{{~> (parent)~}}