From bb135917cfb53cf1bd1eb94006c264977063de05 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 9 Jul 2024 08:32:38 -0700 Subject: [PATCH] new login page with the new components --- internal/views/users/login copy.templ | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 internal/views/users/login copy.templ diff --git a/internal/views/users/login copy.templ b/internal/views/users/login copy.templ new file mode 100644 index 0000000..8cb72a2 --- /dev/null +++ b/internal/views/users/login copy.templ @@ -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") + } + } +}