2024-05-12 09:35:13 -07:00
|
|
|
package users
|
|
|
|
|
2024-07-11 08:08:58 -07:00
|
|
|
import (
|
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form"
|
2024-07-14 09:07:16 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
|
2024-07-11 08:08:58 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
|
|
)
|
2024-05-12 09:35:13 -07:00
|
|
|
|
|
|
|
templ SignUp() {
|
2024-07-14 09:07:16 -07:00
|
|
|
@layout.WithTemplate(models.HeaderMetaTags{
|
|
|
|
Title: "Signup",
|
|
|
|
Type: "Page",
|
|
|
|
}) {
|
2024-07-11 08:08:58 -07:00
|
|
|
@form.New(form.NewParam{HxPost: "/users/signup"}) {
|
2024-07-14 09:07:16 -07:00
|
|
|
@form.Field() {
|
2024-07-11 08:08:58 -07:00
|
|
|
@form.Label("Username")
|
|
|
|
@form.Control() {
|
2024-07-13 10:38:54 -07:00
|
|
|
@form.TextInput("username", form.InputTypeText, "username or email address")
|
2024-07-11 08:08:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@form.Field() {
|
|
|
|
@form.Label("Password")
|
|
|
|
@form.Control() {
|
2024-07-13 10:38:54 -07:00
|
|
|
@form.TextInput("password", form.InputTypePassword, "Nice strong password, like Ox!")
|
2024-07-11 08:08:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@form.Submit("Submit", "")
|
|
|
|
}
|
2024-05-12 09:35:13 -07:00
|
|
|
}
|
|
|
|
}
|