From a3218dae6b64ebbdb4feafa9481ac57057ff4ea1 Mon Sep 17 00:00:00 2001 From: pjaudiomv <34245618+pjaudiomv@users.noreply.github.com> Date: Fri, 5 Jul 2024 12:20:55 -0400 Subject: [PATCH] first pass on populating a users form (#951) * user populate * refactor a bit * min/max, mo validation * make UsersForm component * no submit * various fixes * cannot change type or owner of self * format --------- Co-authored-by: Jonathan Braswell <10187286+jbraswell@users.noreply.github.com> --- src/resources/js/components/UsersForm.svelte | 178 +++++++++++++++++++ src/resources/js/routes/Users.svelte | 157 +++++----------- src/resources/js/stores/localization.ts | 2 +- 3 files changed, 220 insertions(+), 117 deletions(-) create mode 100644 src/resources/js/components/UsersForm.svelte diff --git a/src/resources/js/components/UsersForm.svelte b/src/resources/js/components/UsersForm.svelte new file mode 100644 index 000000000..276081539 --- /dev/null +++ b/src/resources/js/components/UsersForm.svelte @@ -0,0 +1,178 @@ + + +
+
+
+ + + + {#if $errors.ownedBy} + {$errors.ownedBy} + {/if} + +
+
+
+ + + + {#if $errors.email} + {$errors.email} + {/if} + +
+
+ + + + {#if $errors.displayName} + {$errors.displayName} + {/if} + +
+
+ + + + {#if $errors.description} + {$errors.description} + {/if} + +
+
+ + + + {#if $errors.username} + {$errors.username} + {/if} + +
+
+ + + + {#if $errors.password} + {$errors.password} + {/if} + +
+ +
diff --git a/src/resources/js/routes/Users.svelte b/src/resources/js/routes/Users.svelte index 9c74fb90b..899007632 100644 --- a/src/resources/js/routes/Users.svelte +++ b/src/resources/js/routes/Users.svelte @@ -1,130 +1,55 @@