33 lines
623 B
Plaintext
33 lines
623 B
Plaintext
package users
|
|
|
|
import (
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form"
|
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
|
|
)
|
|
|
|
var (
|
|
p = form.NewParam{
|
|
HxPost: "/users/login",
|
|
}
|
|
)
|
|
|
|
templ LoginNew() {
|
|
@layout.WithTemplate() {
|
|
@form.New(p) {
|
|
@form.Field() {
|
|
@form.Label("Username")
|
|
@form.Control() {
|
|
@form.TextInput("", "username", "text", "email address")
|
|
}
|
|
}
|
|
@form.Field() {
|
|
@form.Label("Password")
|
|
@form.Control() {
|
|
@form.TextInput("", "password", form.InputTypePassword, "")
|
|
}
|
|
}
|
|
@form.Submit("Submit", "is-primary")
|
|
}
|
|
}
|
|
}
|