new login page with the new components

This commit is contained in:
James Tombleson 2024-07-09 08:32:38 -07:00
parent 0206d84894
commit bb135917cf

View File

@ -0,0 +1,26 @@
package users
import (
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/bulma/form"
"git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout"
)
templ LoginNew() {
@layout.WithTemplate() {
@form.New("/users/login") {
@form.Field() {
@form.Label("Username")
@form.Control() {
@form.Input("", "username", "text")
}
}
@form.Field(){
@form.Label("Password")
@form.Control(){
@form.Input("", "password", form.InputTypePassword)
}
}
@form.Submit("Submit", "is-primary")
}
}
}