Form validation
This commit is contained in:
21
app/templates/types.go
Normal file
21
app/templates/types.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user