rename case-list twig template to list-cases to be more consistent with other templates
This commit is contained in:
parent
4a3245f783
commit
494e5b16ce
@ -1,45 +0,0 @@
|
|||||||
{% extends 'base.html.twig' %}
|
|
||||||
|
|
||||||
{% block body %}
|
|
||||||
{{ block('nav', 'internal/libs/nav.html.twig') }}
|
|
||||||
|
|
||||||
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
|
|
||||||
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
|
|
||||||
|
|
||||||
<div class="container-fluid py-2">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<div class="card my-4">
|
|
||||||
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
|
||||||
<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">Case List</h6>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-case', '_self')">Add Case</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card-body px-0 pb-2">
|
|
||||||
<div class="table-responsive p-0">
|
|
||||||
<table class="table align-items-center mb-0">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Name</th>
|
|
||||||
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">Case #</th>
|
|
||||||
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Referral #</th>
|
|
||||||
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Hours Rem</th>
|
|
||||||
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">End Date</th>
|
|
||||||
<th class="text-secondary opacity-7"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
{% endblock %}
|
|
104
templates/internal/cases/list-cases.html.twig
Normal file
104
templates/internal/cases/list-cases.html.twig
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
{% extends 'base.html.twig' %}
|
||||||
|
|
||||||
|
{% block body %}
|
||||||
|
{{ block('nav', 'internal/libs/nav.html.twig') }}
|
||||||
|
|
||||||
|
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
|
||||||
|
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
|
||||||
|
|
||||||
|
<div class="container-fluid py-2">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="card my-4">
|
||||||
|
<div class="card-header p-0 position-relative mt-n4 mx-3 z-index-2">
|
||||||
|
<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">Case List</h6>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-case', '_self')">Add Case</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body px-0 pb-2">
|
||||||
|
<div>
|
||||||
|
Filters:
|
||||||
|
<select onchange='javascript:filterCasesByUser(this.value)'>
|
||||||
|
<option value=''></option>
|
||||||
|
|
||||||
|
{% for w in workers %}
|
||||||
|
<option value='{{ w.id }}'>{{ w.name }}</option>
|
||||||
|
{% endfor %}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="table-responsive p-0">
|
||||||
|
<table class="table align-items-center mb-0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Name</th>
|
||||||
|
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">Case #</th>
|
||||||
|
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">DCS Case ID</th>
|
||||||
|
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Type/Source</th>
|
||||||
|
<th class='text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7'>County</th>
|
||||||
|
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Case Worker</th>
|
||||||
|
<th class="text-secondary opacity-7"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for c in cases %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class='d-flex px-2 py-1'>
|
||||||
|
<div class='d-flex flex-column justify-content-center'>
|
||||||
|
<h6 class='mb-0 text-small'>{{ c.caseName }}</h6>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class='text-xs font-weight-bold mb-0'>{{ c.caseNumber }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class='text-xs font-weight-bold mb-0'>{{ c.dcsCaseId }}</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class='text-xs font-weight-bold mb-0'>
|
||||||
|
{{ c.referralType }}/{{ c.referralSource.name }}<br/>
|
||||||
|
<a href='mailto:{{ c.referralSource.email }}'>{{ c.referralSource.email }}</a>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<p class='text-xs font-weight-bold mb-0'>{{ c.county.value }}</p>
|
||||||
|
</td>
|
||||||
|
<td class='align-middle text-center text-xs'>
|
||||||
|
<p class='text-xs font-weight-bold mb-0'>
|
||||||
|
{% if c.userCases|length > 0 %}
|
||||||
|
{{ c.userCases.0.user.name }}
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td class='align-right'>
|
||||||
|
<a href='/index.php/edit-case/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Edit Case'>
|
||||||
|
<i class="material-symbols-rounded opacity-5">edit</i>
|
||||||
|
</a>
|
||||||
|
<a href='/index.php/assign-case/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Assign Worker'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>person_add</i>
|
||||||
|
</a>
|
||||||
|
<a href='/index.php/add-referral/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Add Referral'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>create_new_folder</i>
|
||||||
|
</a>
|
||||||
|
<a href='/index.php/list-members/{{ c.id }}' class='' data-toggle='tooltip' data-original-title='Add Member'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>person_add</i>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</td>
|
||||||
|
</tbody>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div></div></main>{% endblock %}
|
Loading…
Reference in New Issue
Block a user