add edit issue button and modal

This commit is contained in:
Robin Olsen
2026-02-25 11:53:56 +01:00
parent f28ab4be78
commit 87d4cdae3f
14 changed files with 233 additions and 135 deletions

View File

@@ -7,7 +7,8 @@ import (
)
type IssueFormProps struct {
Action string
PostAction string
PatchAction string
Title string
Description string
Status string
@@ -22,7 +23,12 @@ templ IssueForm(props IssueFormProps) {
<div class={ "w-full max-w-lg mx-auto ", props.Class }>
<form
class="form space-y-1"
hx-post={ props.Action }
if props.PatchAction != "" {
hx-patch={ props.PatchAction }
}
if props.PostAction != "" {
hx-post={ props.PostAction }
}
if props.Target != "" {
hx-target={ props.Target }
}