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"
|
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
|
|
)
|
2024-05-12 09:35:13 -07:00
|
|
|
|
|
|
|
templ SignUp() {
|
|
|
|
@layout.WithTemplate() {
|
2024-07-11 08:08:58 -07:00
|
|
|
@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")
|
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
|
|
|
}
|
|
|
|
}
|