add ability to change assingee

This commit is contained in:
Robin Olsen
2026-02-25 13:20:30 +01:00
parent 6264f9dfc9
commit 44e894f025
12 changed files with 219 additions and 57 deletions

View File

@@ -0,0 +1,22 @@
package components
import "github.com/LazyBachelor/LazyPM/pkg/web/components/base"
type AssigneeFormProps struct {
PatchAction string
Assignee string
}
templ AssigneeForm(props AssigneeFormProps) {
<form
hx-patch={ props.PatchAction }
hx-swap="innerHTML"
>
@base.Input(base.InputProps{
Name: "assignee",
Type: "text",
Value: props.Assignee,
})
<button class="btn btn-primary mt-2" type="submit">Set Assignee</button>
</form>
}