2024-07-09 08:32:38 -07:00
|
|
|
package users
|
|
|
|
|
|
|
|
import (
|
2024-07-11 08:08:58 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form"
|
2024-07-09 08:32:38 -07:00
|
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
|
|
)
|
|
|
|
|
2024-07-11 08:08:58 -07:00
|
|
|
var (
|
|
|
|
p = form.NewParam{
|
|
|
|
HxPost: "/users/login",
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2024-07-09 08:32:38 -07:00
|
|
|
templ LoginNew() {
|
|
|
|
@layout.WithTemplate() {
|
2024-07-11 08:08:58 -07:00
|
|
|
@form.New(p) {
|
2024-07-09 08:32:38 -07:00
|
|
|
@form.Field() {
|
|
|
|
@form.Label("Username")
|
|
|
|
@form.Control() {
|
2024-07-13 10:38:54 -07:00
|
|
|
@form.TextInput("username", "text", "email address")
|
2024-07-09 08:32:38 -07:00
|
|
|
}
|
|
|
|
}
|
2024-07-11 08:08:58 -07:00
|
|
|
@form.Field() {
|
2024-07-09 08:32:38 -07:00
|
|
|
@form.Label("Password")
|
2024-07-11 08:08:58 -07:00
|
|
|
@form.Control() {
|
2024-07-13 10:38:54 -07:00
|
|
|
@form.TextInput("password", form.InputTypePassword, "")
|
2024-07-09 08:32:38 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
@form.Submit("Submit", "is-primary")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|