From baf23f96cd1bba585cc391287080fbb95c97cd1d Mon Sep 17 00:00:00 2001 From: Cameron Reed Date: Tue, 1 Oct 2024 15:13:59 -0600 Subject: [PATCH] I forgot the create account page --- pages/login.go | 2 +- pages/templates/login.templ | 20 ++++++++++---------- pages/templates/login_templ.go | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/login.go b/pages/login.go index 0f22c57..0614cdc 100644 --- a/pages/login.go +++ b/pages/login.go @@ -53,7 +53,7 @@ func CreateAccount(w http.ResponseWriter, r *http.Request) { w.Header().Add("Location", "/") w.WriteHeader(http.StatusSeeOther) } else { - templates.CreateAccountBox(false).Render(r.Context(), w) + templates.CreateAccountBox(r.URL.Query().Has("basic")).Render(r.Context(), w) } return } diff --git a/pages/templates/login.templ b/pages/templates/login.templ index d6f5857..817e3b0 100644 --- a/pages/templates/login.templ +++ b/pages/templates/login.templ @@ -55,21 +55,21 @@ templ CreateAccountBox(basic_css bool) {

Create Account

-
-
- +
+ + -
+
-
- + + -
+
-
- + + - +
} diff --git a/pages/templates/login_templ.go b/pages/templates/login_templ.go index 02f587d..ed53fe0 100644 --- a/pages/templates/login_templ.go +++ b/pages/templates/login_templ.go @@ -131,7 +131,7 @@ func CreateAccountBox(basic_css bool) templ.Component { }() } ctx = templ.InitializeContext(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Create Account




") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Create Account

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }