open same details page from board view; make assignee button more obvious

This commit is contained in:
viljarb
2026-03-03 20:41:18 +01:00
parent cb10aeff6b
commit eef3b4849d
16 changed files with 1311 additions and 280 deletions

View File

@@ -7,16 +7,17 @@ import (
)
type IssueFormProps struct {
PostAction string
PatchAction string
Title string
Description string
Status string
Priority int
IssueType string
Class string
Attrs templ.Attributes
Target string // Optional: if empty, server controls via HX-Target header
PostAction string
PatchAction string
DeleteAction string // Optional: URL for delete confirmation modal
Title string
Description string
Status string
Priority int
IssueType string
Class string
Attrs templ.Attributes
Target string // Optional: if empty, server controls via HX-Target header
}
templ IssueForm(props IssueFormProps) {
@@ -84,6 +85,17 @@ templ IssueForm(props IssueFormProps) {
Submit Issue
</button>
</form>
if props.DeleteAction != "" {
<button
type="button"
class="btn btn-error w-full mt-2"
hx-get={ props.DeleteAction }
hx-target="#modal-container"
hx-swap="innerHTML"
>
Delete Issue
</button>
}
if props.Target == "" {
<div id="result"></div>
}