numerus/pkg
jordi fita mas ff5b76b4f5 Use a “proper” struct for the login form
Similar to the profile form, the login form now parses and validates
itself, with the InputField structs that the templates expect.

I realized that i was doing more work than necessary when parsing fields
fro the profile form because i was repeating the operation and the field
name, so now it is a function of InputField.

This time i needed extra attributes for the login form.  I am not sure
that the Go source code needs to know about HTML attributes, but it was
the easiest way to pass them to the template.
2023-02-01 11:02:32 +01:00
..
company.go Move page titles to their respective templates 2023-01-31 13:07:17 +01:00
contacts.go Move page titles to their respective templates 2023-01-31 13:07:17 +01:00
db.go Prefix with “Must” all functions that panic 2023-01-22 20:37:43 +01:00
form.go Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
locale.go Validate profile form and use templates for fields 2023-01-31 15:40:12 +01:00
logger.go Move source file to the root of pkg 2023-01-17 10:40:22 +01:00
login.go Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
profile.go Use a “proper” struct for the login form 2023-02-01 11:02:32 +01:00
recover.go Gofmt recover.go 2023-01-22 20:37:34 +01:00
router.go Rename extension of templates to .gohtml 2023-01-30 16:48:21 +01:00
template.go Add custom function to get the current locale from templates 2023-01-31 15:45:51 +01:00