diff --git a/Backend/templates/user.templ b/Backend/templates/user.templ index 2542a1d..847016f 100644 --- a/Backend/templates/user.templ +++ b/Backend/templates/user.templ @@ -1,16 +1,10 @@ package templates templ LoginForm(failed bool){ - // {{ - // failedClass := "" - // if(failed){ - // failedClass = "border border-red-600" - // } - // }} @Style()
-
+ if failed { diff --git a/Backend/templates/user_templ.go b/Backend/templates/user_templ.go index 68ae8ff..7cc5269 100644 --- a/Backend/templates/user_templ.go +++ b/Backend/templates/user_templ.go @@ -33,39 +33,17 @@ func LoginForm(failed bool) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var2 = []any{"w-1/2 flex flex-col gap-4 p-2"} - templ_7745c5c3_Err = templ.RenderCSSItems(ctx, templ_7745c5c3_Buffer, templ_7745c5c3_Var2...) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, " ") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } if failed { - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 4, "

Login fehlgeschlagen, bitte erneut versuchen!

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "

Login fehlgeschlagen, bitte erneut versuchen!

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 5, "
") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 3, "
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }