feat(form): add default options

This commit is contained in:
Simon Vieille 2025-07-27 14:32:54 +02:00
commit eb85de0376
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -42,6 +42,10 @@ func NewForm(fields ...*Field) *Form {
f.Method = "POST"
f.Name = "form"
f.Add(fields...)
f.WithOptions(
NewOption("attr", Attrs{}),
NewOption("help_attr", Attrs{}),
)
return f
}