add work and personal phone to form

This commit is contained in:
Ryan Prather 2025-01-11 21:57:45 -05:00
parent 458ba42644
commit b7c0b3de6b
4 changed files with 20 additions and 0 deletions

View File

@ -36,6 +36,8 @@ class EditUserFormType extends AbstractType
'placeholder' => 'Email', 'placeholder' => 'Email',
], ],
]) ])
->add('workPhone', TextType::class)
->add('personalPhone', TextType::class)
->add('caseWorker', CheckboxType::class) ->add('caseWorker', CheckboxType::class)
->add('caseManager', CheckboxType::class) ->add('caseManager', CheckboxType::class)
->add('therapist', CheckboxType::class) ->add('therapist', CheckboxType::class)

View File

@ -59,6 +59,8 @@ class UserFormType extends AbstractType
]), ]),
], ],
]) ])
->add('workPhone', TextType::class)
->add('personalPhone', TextType::class)
->add('caseWorker', CheckboxType::class) ->add('caseWorker', CheckboxType::class)
->add('caseManager', CheckboxType::class) ->add('caseManager', CheckboxType::class)
->add('therapist', CheckboxType::class) ->add('therapist', CheckboxType::class)

View File

@ -39,6 +39,14 @@
<label for="user_form_password" class="form-label">Password</label> <label for="user_form_password" class="form-label">Password</label>
<input type="password" name="{{ field_name(form.password) }}" id='user_form_password' placeholder="" class="form-control" required="required"/> <input type="password" name="{{ field_name(form.password) }}" id='user_form_password' placeholder="" class="form-control" required="required"/>
</div> </div>
<div class='input-group input-group-outline mb-3'>
<label for='user_form_workPhone' class='form-label'>Work Phone</label>
<input type='tel' name='{{ field_name(form.workPhone) }}' id='user_form_workPhone' placeholder="" class="form-control" required="required"/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='user_form_personalPhone' class='form-label'>Personal Phone</label>
<input type='tel' name='{{ field_name(form.personalPhone) }}' id='user_form_personalPhone' placeholder="" class="form-control"/>
</div>
<div class='input-group input-group-outline mb-3'> <div class='input-group input-group-outline mb-3'>
<div class='row justify-content-center flex-column'> <div class='row justify-content-center flex-column'>
<div class='col'> <div class='col'>

View File

@ -30,6 +30,14 @@
<label for="user_form_email" class="form-label">Email</label> <label for="user_form_email" class="form-label">Email</label>
<input type="email" name="{{ field_name(form.email) }}" value='{{ field_value(form.email) }}' class="form-control" required="required"/> <input type="email" name="{{ field_name(form.email) }}" value='{{ field_value(form.email) }}' class="form-control" required="required"/>
</div> </div>
<div class='input-group input-group-outline mb-3'>
<label for='user_form_workPhone' class='form-label'>Work Phone</label>
<input type="text" name="{{ field_name(form.workPhone) }}" value='{{ field_value(form.workPhone) }}' class="form-control" required="required"/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='user_form_personalPhone' class='form-label'>Personal Phone</label>
<input type="text" name="{{ field_name(form.personalPhone) }}" value='{{ field_value(form.personalPhone) }}' class="form-control"/>
</div>
<div class='input-group input-group-outline mb-3'> <div class='input-group input-group-outline mb-3'>
<div class='row justify-content-center flex-column'> <div class='row justify-content-center flex-column'>
<div class='col'> <div class='col'>