set selected tags in edititem

This commit is contained in:
2025-04-16 01:55:40 +02:00
parent ae36903e73
commit d17c33f6ee
3 changed files with 50 additions and 13 deletions

View File

@@ -37,7 +37,7 @@
<div class="space-y-2">
{{ range .data.tags }}
<label class="flex text-sm/6 items-center">
<input type="checkbox" class="form-checkbox h-4 w-4 text-gray-900" value="{{ .ID }}" name="tags[]">
<input type="checkbox" {{ .Checked }} class="form-checkbox h-4 w-4 text-gray-900" value="{{ .ID }}" name="tags[]">
<span class="ml-2 text-sm/6 text-gray-900">{{ .Name }}</span>
</label>
{{ end }}