Form validation

This commit is contained in:
Eden Kirin
2024-01-21 21:06:26 +01:00
parent eda1d02418
commit abde90ee33
7 changed files with 407 additions and 89 deletions

21
app/templates/types.go Normal file
View File

@ -0,0 +1,21 @@
package templates
import "templ-tests/app/types"
type PageContext struct {
Title string
ActivePage string
User *types.User
}
type ValidateFormContent struct {
Validated bool
StrValue string
HasStrValueError bool
StrValueError string
NumValue string
HasNumValueError bool
NumValueError string
}