feat(theme/html5): add classes for help and errors html nodes
This commit is contained in:
parent
1d40aa6b09
commit
bec0acd2f2
1 changed files with 3 additions and 0 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue