31 lines
756 B
Plaintext
31 lines
756 B
Plaintext
package users
|
|
|
|
import (
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/templ-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() {
|
|
@form.TextInput("username", form.InputTypeText, "username or email address")
|
|
}
|
|
}
|
|
@form.Field() {
|
|
@form.Label("Password")
|
|
@form.Control() {
|
|
@form.TextInput("password", form.InputTypePassword, "Nice strong password, like Ox!")
|
|
}
|
|
}
|
|
@form.Submit("Submit", "")
|
|
}
|
|
}
|
|
}
|