From db28ac9bf9c400f1cfcd906adef537ed8edaeac5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 24 Jul 2023 15:07:06 +0000 Subject: [PATCH] register.html: Fix showing warnings on errors Signed-off-by: Michael Tremer --- src/templates/auth/register.html | 91 +++++++++++++++++--------------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/src/templates/auth/register.html b/src/templates/auth/register.html index 46c3be45..30aeb5bc 100644 --- a/src/templates/auth/register.html +++ b/src/templates/auth/register.html @@ -25,27 +25,23 @@
-
-
-

- - - - -

-
-
-
- -
- {{ _("Please choose a username in UNIX format with at least four characters, starting with a lowercase letter, followed by only lowercase letters, digits, dash and underscore") }} -
- -
- {{ _("This username is not available") }} +

+ + + + +

+ +

+ {{ _("Please choose a username in UNIX format with at least four characters, starting with a lowercase letter, followed by only lowercase letters, digits, dash and underscore") }} +

+ +

+ {{ _("This username is not available") }} +

@@ -57,13 +53,20 @@ - +

+ + +

- +

@@ -72,26 +75,25 @@
-
-
-

- - - - -

- {{ _("This email address is invalid") }} -
-
- {{ _("This email address cannot be used") }} -
-
- {{ _("This email address is already in use") }} -
-

-
-
+

+ + + + +

+ +

+ {{ _("This email address is invalid") }} +

+ +

+ {{ _("This email address cannot be used") }} +

+ +

+ {{ _("This email address is already in use") }} +

@@ -120,6 +122,9 @@ email: false, }; + // Hide all invalid feedback + form.find(".invalid-feedback").hide(); + var check_uid; var check_email; -- 2.47.3