newsbot-portal/internal/views/users/login copy.templ
2024-07-13 10:38:54 -07:00

33 lines
615 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")
}
}
}