feat(theme/html5): add classes for help and errors html nodes

This commit is contained in:
Simon Vieille 2025-10-01 18:14:08 +02:00
commit bec0acd2f2
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -59,6 +59,7 @@ var Html5 = CreateTheme(func() map[string]RenderFunc {
}
return Ul(
Class("gf-errors"),
Group(result),
)
}
@ -94,6 +95,7 @@ var Html5 = CreateTheme(func() map[string]RenderFunc {
}
return Div(
Class("gf-help"),
Text(help),
extra,
)
@ -452,6 +454,7 @@ var Html5 = CreateTheme(func() map[string]RenderFunc {
form := args[0].(*form.Form)
return Form(
Class("gf-form"),
Action(form.Action),
Method(form.Method),
parent["form_attributes"](parent, form),