diff --git a/starter/AGENTS.md b/starter/AGENTS.md index 040cfe2..ec36d3d 100644 --- a/starter/AGENTS.md +++ b/starter/AGENTS.md @@ -1,3 +1,7 @@ +--- +apply: always +--- + # Development Guidelines ## Styling diff --git a/starter/workflow_executions/workflow_executions.go b/starter/workflow_executions/workflow_executions.go index 9f2d919..84af99c 100644 --- a/starter/workflow_executions/workflow_executions.go +++ b/starter/workflow_executions/workflow_executions.go @@ -10,6 +10,7 @@ import ( "git.gorlug.de/code/ersteller/schema/ent" "git.gorlug.de/code/ersteller/schema/ent/generalqueue" "git.gorlug.de/code/ersteller/workflow" + hx "maragu.dev/gomponents-htmx" . "maragu.dev/gomponents" . "maragu.dev/gomponents/html" @@ -103,10 +104,9 @@ func (p *Page) View(c HtmxContext) { func (p *Page) triggerForm(c HtmxContext) Node { lang := c.GetLanguage() - return Form(Action(p.TriggerRoute.ToUrlFromContext(c, lang)), Method("post"), - Attr("hx-post", p.TriggerRoute.ToUrlFromContext(c, lang)), - Attr("hx-target", "#executions-list"), - Attr("hx-swap", "outerHTML"), + return Form(p.TriggerRoute.GetHtmx(lang), + hx.Target("#executions-list"), + hx.Swap("outerHTML"), Div(Class("form-row"), Input(Type("text"), Name("input"), Placeholder(texts.TriggerPlaceholder.FromLang(lang))), Button(Type("submit"), Text(texts.TriggerButton.FromLang(lang))),