gontrol/templates/agentList.html

15 lines
517 B
HTML
Raw Normal View History

2025-01-06 11:07:53 +01:00
{{define "agentList"}}
<ul>
{{range .}}
<li>
<span {{if .Done}} style="text-decoration:line-through" {{end}}>{{.Agents}}</span>
<!-- [<a href="#" hx-get="/gettaskupdateform/{{.Id}}" hx-target="#addTaskForm" hx-swap="innerHTML">Edit</a>] | -->
<a href="#" hx-delete="/agents/{{.agentId}}"
hx-confirm="Are you sure you want to Delete this Task?"
hx-target="#agentList">[Delete]</a>
</li>
{{end}}
</ul>
{{end}}