Update user templates
This commit is contained in:
parent
e25eff2d49
commit
db01c1296c
@ -40,13 +40,26 @@
|
|||||||
<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'>
|
<div class='input-group input-group-outline mb-3'>
|
||||||
<label for='user_form_job' class='form-label'>Job</label>
|
<div class='row justify-content-center flex-column'>
|
||||||
<select name='{{ field_name(form.job) }}' id='user_form_job' class='form-control'>
|
<div class='col'>
|
||||||
<option value=''></option>
|
<input type='checkbox' name='{{ field_name(form.caseWorker) }}' id='user_form_job_CASE_WORKER' value='CASE_WORKER'/>
|
||||||
{% for jt in enum('App\\Enums\\JobType').cases() %}
|
<label for='user_form_job_CASE_WORKER'>Case Worker</label><br/>
|
||||||
<option value='{{ jt.value }}'>{{ jt.name }}</option>
|
</div>
|
||||||
{% endfor %}
|
<div class='col'>
|
||||||
</select>
|
<input type='checkbox' name='{{ field_name(form.therapist) }}' id='user_form_job_THERAPIST' value='THERAPIST'/>
|
||||||
|
<label for='user_form_job_THERAPIST'>Therapist</label><br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='row justify-content-center flex-column'>
|
||||||
|
<div class='col'>
|
||||||
|
<input type='checkbox' name='{{ field_name(form.caseManager) }}' id='user_form_job_CASE_MANAGER' value='CASE_MANAGER'/>
|
||||||
|
<label for='user_form_job_CASE_MANAGER'>Case Manager</label>
|
||||||
|
</div>
|
||||||
|
<div class='col'>
|
||||||
|
<input type='checkbox' name='{{ field_name(form.su) }}' id='user_form_job_ADMIN' value='THERAPIST'/>
|
||||||
|
<label for='user_form_job_ADMIN'>Admin</label><br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='input-group input-group-outline mb-3'>
|
<div class='input-group input-group-outline mb-3'>
|
||||||
<label for='user_form_level' class='form-label'>Level</label>
|
<label for='user_form_level' class='form-label'>Level</label>
|
||||||
|
@ -30,15 +30,27 @@
|
|||||||
<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 is-filled'>
|
<div class='input-group input-group-outline mb-3'>
|
||||||
<label for='user_form_job' class='form-label'>Job</label>
|
<div class='row justify-content-center flex-column'>
|
||||||
<select name='{{ field_name(form.job) }}' id='user_form_job' class='form-control'>
|
<div class='col'>
|
||||||
<option value=''></option>
|
<input type='checkbox' name='{{ field_name(form.caseWorker) }}' id='user_form_job_CASE_WORKER' value='CASE_WORKER' {% if is_granted('ROLE_CASE_WORKER') %} checked="checked" {% endif %}/>
|
||||||
{% for j in enum('App\\Enums\\JobType').cases() %}
|
<label for='user_form_job_CASE_WORKER'>Case Worker</label><br/>
|
||||||
{% set selected = (j.value == data.job.value) %}
|
</div>
|
||||||
<option value='{{ j.value }}' {% if selected %} selected="true" {% endif %}>{{ j.name }}</option>
|
<div class='col'>
|
||||||
{% endfor %}
|
<input type='checkbox' name='{{ field_name(form.therapist) }}' id='user_form_job_THERAPIST' value='THERAPIST' {% if is_granted('ROLE_THERAPIST') %} checked="checked" {% endif %}/>
|
||||||
</select>
|
<label for='user_form_job_THERAPIST'>Therapist</label><br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class='row justify-content-center flex-column'>
|
||||||
|
<div class='col'>
|
||||||
|
<input type='checkbox' name='{{ field_name(form.caseManager) }}' id='user_form_job_CASE_MANAGER' value='CASE_MANAGER' {% if is_granted('ROLE_CASE_MANAGER') %} checked="checked" {% endif %}/>
|
||||||
|
<label for='user_form_job_CASE_MANAGER'>Case Manager</label>
|
||||||
|
</div>
|
||||||
|
<div class='col'>
|
||||||
|
<input type='checkbox' name='{{ field_name(form.su) }}' id='user_form_job_ADMIN' value='ADMIN' {% if is_granted('ROLE_ADMIN') %} checked="checked" {% endif %}/>
|
||||||
|
<label for='user_form_job_ADMIN'>Admin</label><br/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='input-group input-group-outline mb-3 is-filled'>
|
<div class='input-group input-group-outline mb-3 is-filled'>
|
||||||
<label for='user_form_level' class='form-label'>Level</label>
|
<label for='user_form_level' class='form-label'>Level</label>
|
||||||
|
@ -11,9 +11,14 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card my-4">
|
<div class="card my-4">
|
||||||
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
||||||
<div class="bg-gradient-dark shadow-dark border-radius-lg pt-4 pb-3">
|
<div class="d-flex justify-content-between bg-gradient-dark shadow-dark border-radius-lg pt-4 pb-3 ps-3 p-2">
|
||||||
|
<div>
|
||||||
<h6 class="text-white text-capitalize ps-3">User List</h6>
|
<h6 class="text-white text-capitalize ps-3">User List</h6>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-user', '_self')">Add User</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body px-0 pb-2">
|
<div class="card-body px-0 pb-2">
|
||||||
<div class="table-responsive p-0">
|
<div class="table-responsive p-0">
|
||||||
@ -44,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<p class='text-xs font-weight-bold mb-0'>{{ user.job.value|lower|capitalize }}</p>
|
<p class='text-xs font-weight-bold mb-0'>{{ user.getJobs()|join(', ') }}</p>
|
||||||
</td>
|
</td>
|
||||||
<td class='align-middle text-center text-xs'>
|
<td class='align-middle text-center text-xs'>
|
||||||
{{ user.userCases|length }}
|
{{ user.userCases|length }}
|
||||||
|
Loading…
Reference in New Issue
Block a user