newsbot-portal/internal/views/users/signup.templ

31 lines
761 B
Plaintext
Raw Normal View History

package users
import (
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/models"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
)
templ SignUp() {
@layout.WithTemplate(models.HeaderMetaTags{
Title: "Signup",
Type: "Page",
}) {
@form.New(form.NewParam{HxPost: "/users/signup"}) {
@form.Field() {
@form.Label("Username")
@form.Control() {
2024-07-13 10:38:54 -07:00
@form.TextInput("username", form.InputTypeText, "username or email address")
}
}
@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!")
}
}
@form.Submit("Submit", "")
}
}
}