package users import ( "git.jamestombleson.com/jtom38/newsbot-portal/components/bulma/form" "git.jamestombleson.com/jtom38/newsbot-portal/internal/views/layout" "git.jamestombleson.com/jtom38/newsbot-portal/internal/models" ) var ( p = form.NewParam{ HxPost: "/users/login", } ) templ LoginNew(vm models.UsersLoginViewModel) { @layout.WithTemplate(vm.HeaderMetaTags) { @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") } } }