rocket_page/templates/add_stunde_form.hbs

42 lines
1.0 KiB
Handlebars
Raw Permalink Normal View History

{{#* inline "page"}}
<h1>Stunden</h1>
<table>
<tr>
<th>Name</th>
<th>Abkürzung</th>
<th>Priorität</th>
2020-08-12 21:26:59 +02:00
<th>Operation</th>
</tr>
{{#each stunden}}
<tr>
<td>{{ this.title }}</td>
<td>{{this.short}}</td>
<td>{{this.ordinal}}</td>
2020-08-12 21:26:59 +02:00
<td><a href="/admin/delete/stunde/{{this.stunden_id}}">löschen</a></td>
</tr>
{{/each}}
</table>
<h1>Stunde hinzu fügen</h1>
<form action="/admin/add/stunde" method="post" accept-charset="utf-8">
<table>
<tr>
<th>Name:</th>
<td><input type="text" name="title"></td>
</tr>
<tr>
<th>Abkürzung:</th>
<td><input type="text" name="short"></td>
</tr>
<tr>
<th>Priorität:</th>
<td><input type="number" name="ordinal"></td>
</tr>
<tr>
<th></th>
<td><input type="submit" value="Stunde Erstellen"></td>
</tr>
</table>
</form>
{{/inline}}
{{! remove whitespaces with ~ }}
{{~> (parent)~}}