Merge remote-tracking branch 'origin/main' into LPM-78
This commit is contained in:
22
pkg/web/components/assignee_form.templ
Normal file
22
pkg/web/components/assignee_form.templ
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user