add helper
This commit is contained in:
parent
833708e38a
commit
44461b1ec7
1 changed files with 4 additions and 0 deletions
|
|
@ -27,6 +27,10 @@ func FormWithBlurValidation(ctx *h.RequestContext) *h.Partial {
|
||||||
h.Placeholder("Name"),
|
h.Placeholder("Name"),
|
||||||
h.Post(validationPath, hx.BlurEvent),
|
h.Post(validationPath, hx.BlurEvent),
|
||||||
),
|
),
|
||||||
|
h.Pf(
|
||||||
|
"type 'htmgo' to see validation errors",
|
||||||
|
h.Class("text-slate-600 text-sm"),
|
||||||
|
),
|
||||||
h.Div(
|
h.Div(
|
||||||
h.Id("name-error"),
|
h.Id("name-error"),
|
||||||
h.Class("text-red-500"),
|
h.Class("text-red-500"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue