From b7c0b3de6b9a923c0ec5118213e2e543b20a00a1 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sat, 11 Jan 2025 21:57:45 -0500 Subject: [PATCH] add work and personal phone to form --- src/Form/EditUserFormType.php | 2 ++ src/Form/UserFormType.php | 2 ++ templates/internal/admin/users/add-user.html.twig | 8 ++++++++ templates/internal/admin/users/edit-user.html.twig | 8 ++++++++ 4 files changed, 20 insertions(+) diff --git a/src/Form/EditUserFormType.php b/src/Form/EditUserFormType.php index e16ae15..fc70ebd 100644 --- a/src/Form/EditUserFormType.php +++ b/src/Form/EditUserFormType.php @@ -36,6 +36,8 @@ class EditUserFormType extends AbstractType 'placeholder' => 'Email', ], ]) + ->add('workPhone', TextType::class) + ->add('personalPhone', TextType::class) ->add('caseWorker', CheckboxType::class) ->add('caseManager', CheckboxType::class) ->add('therapist', CheckboxType::class) diff --git a/src/Form/UserFormType.php b/src/Form/UserFormType.php index 01bd7dd..d7eb278 100644 --- a/src/Form/UserFormType.php +++ b/src/Form/UserFormType.php @@ -59,6 +59,8 @@ class UserFormType extends AbstractType ]), ], ]) + ->add('workPhone', TextType::class) + ->add('personalPhone', TextType::class) ->add('caseWorker', CheckboxType::class) ->add('caseManager', CheckboxType::class) ->add('therapist', CheckboxType::class) diff --git a/templates/internal/admin/users/add-user.html.twig b/templates/internal/admin/users/add-user.html.twig index 4343099..96e7e72 100644 --- a/templates/internal/admin/users/add-user.html.twig +++ b/templates/internal/admin/users/add-user.html.twig @@ -39,6 +39,14 @@ +
+ + +
+
+ + +
diff --git a/templates/internal/admin/users/edit-user.html.twig b/templates/internal/admin/users/edit-user.html.twig index dd08ee0..4c5bc9d 100644 --- a/templates/internal/admin/users/edit-user.html.twig +++ b/templates/internal/admin/users/edit-user.html.twig @@ -30,6 +30,14 @@
+
+ + +
+
+ + +