package pages import ( "git.grosinger.net/tgrosinger/saasitone/templ/components" "git.grosinger.net/tgrosinger/saasitone/pkg/form" "git.grosinger.net/tgrosinger/saasitone/pkg/page" ) type LoginForm struct { Email string `form:"email" validate:"required,email"` Password string `form:"password" validate:"required"` form.Submission } templ Login(p page.Page, f *LoginForm) {
@components.Messages(p)
@components.FieldErrors(f.Submission.GetFieldErrors("Email"))
@components.FieldErrors(f.Submission.GetFieldErrors("Password"))

Cancel

@components.CSRF(p.CSRF)
}