Aufgaben-Templates löschbar machen
This commit is contained in:
@@ -69,6 +69,28 @@
|
||||
</label>
|
||||
<button type="submit">Template speichern</button>
|
||||
</form>
|
||||
<div class="table-wrap mt">
|
||||
<table>
|
||||
<thead><tr><th>Template</th><th>Aktion</th></tr></thead>
|
||||
<tbody>
|
||||
{{if .TaskTemplates}}
|
||||
{{range .TaskTemplates}}
|
||||
<tr>
|
||||
<td>{{.Title}}</td>
|
||||
<td>
|
||||
<form method="post" action="/task-templates/delete">
|
||||
<input type="hidden" name="id" value="{{.ID}}">
|
||||
<button type="submit" class="btn-small danger" onclick="return confirm('Template wirklich löschen?')">Löschen</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
{{else}}
|
||||
<tr><td colspan="2">Keine Templates vorhanden.</td></tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="card">
|
||||
|
||||
Reference in New Issue
Block a user