From: Michael Tremer Date: Mon, 24 Jul 2023 15:07:06 +0000 (+0000) Subject: register.html: Fix showing warnings on errors X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db28ac9bf9c400f1cfcd906adef537ed8edaeac5;p=ipfire.org.git register.html: Fix showing warnings on errors Signed-off-by: Michael Tremer --- 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;