From beaf181aa030b52af2402d7431c4a862992084a6 Mon Sep 17 00:00:00 2001 From: Hosteroid Date: Sun, 1 Feb 2026 12:51:41 +0200 Subject: [PATCH] Refactor user create view and add JS validation Redesign the users/create view: move and center the form inside a card, switch to a responsive grid layout, add icons/placeholders, and improve field styling (username, email, role, passwords). Add client-side features: password show/hide toggles and live password confirmation validation. Replace footer action layout with inline action buttons and add an informational panel explaining post-creation behavior. Cosmetic/tailwind updates including container width change to max-w-3xl and small accessibility/UX improvements (autofocus, input hints). --- app/Views/users/create.php | 304 +++++++++++++++++++++++++++---------- 1 file changed, 228 insertions(+), 76 deletions(-) diff --git a/app/Views/users/create.php b/app/Views/users/create.php index 202d6a6..c9553d3 100644 --- a/app/Views/users/create.php +++ b/app/Views/users/create.php @@ -6,96 +6,248 @@ $pageIcon = 'fas fa-user-plus'; ob_start(); ?> -
- +
-
-

User Information

+
+

+ + User Information +

-
- -
- - -
+
+ + - -
- - -

Letters, numbers, and underscores only

-
+ +
+ +
+ + +

+ The user's display name +

+
- -
- - -
+ +
+ +
+ + + + +
+

+ Letters, numbers, and underscores only +

+
+
- -
- - -

Admins have full system access

-
+ +
+ +
+ +
+ + + + +
+

+ Used for login and notifications +

+
- -
- - -

Minimum 8 characters

-
+ +
+ +
+ + + + + + + +
+

+ Admins have full system access +

+
+
- -
- - -
+ +
+

+ + Password +

+ +
+ +
+ +
+ + +
+

+ Minimum 8 characters +

+
-
-

- - Note: Admin-created users are automatically verified and can log in immediately. -

-
-
+ +
+ +
+ + +
+

+ Re-enter the password to confirm +

+
+
+
-
- - Cancel - - + +
+ + + + Cancel + +
+
- + + +
+
+
+
+ +
+
+
+

What happens next?

+
    +
  • + + Admin-created users are automatically verified and can log in immediately +
  • +
  • + + Users can manage their own domains and notification groups +
  • +
  • + + Admin users have access to system settings and user management +
  • +
+
+
+
+
+ + -