This commit is contained in:
Moira Daniella A Sebastian
2026-03-25 21:18:59 +01:00
parent 84aa199075
commit 1ed6814778
4 changed files with 42 additions and 16 deletions

View File

@@ -17,6 +17,7 @@ type IssueFormProps struct {
CloseReason string // Set when status is "closed"
Priority int
IssueType string
Assignee string
Class string
Attrs templ.Attributes
Target string // Optional: if empty, server controls via HX-Target header
@@ -100,6 +101,13 @@ templ IssueForm(props IssueFormProps) {
Value: props.Priority,
Step: 1,
})
@base.Input(base.InputProps{
Name: "assignee",
Label: "Assignee",
Value: props.Assignee,
Class: "w-full",
Placeholder: "Enter Assignee",
})
if props.IssueID != "" {
<div class="mt-4 border-t pt-3 space-y-2">
<h3 class="text-sm font-semibold opacity-70">Dependencies</h3>
@@ -160,7 +168,7 @@ templ IssueForm(props IssueFormProps) {
</button>
}
if props.Target == "" {
<div id="result"></div>
<div id="result"></div>
}
</div>
}