move list-cases twig template to admin portion
This commit is contained in:
parent
d193e9ba79
commit
e6b3850b45
@ -16,24 +16,24 @@
|
||||
<h6 class="text-white text-capitalize ps-3">Case List</h6>
|
||||
</div>
|
||||
{% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %}
|
||||
<div>
|
||||
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_add_case') }}', '_self')">Add Case</button>
|
||||
</div>
|
||||
<div>
|
||||
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_add_case') }}', '_self')">Add Case</button>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body px-0 pb-2">
|
||||
{% if is_granted('ROLE_ADMIN') %}
|
||||
<div>
|
||||
Filters:
|
||||
<select onchange='filterCasesByUser(this.value)'>
|
||||
<option value=''></option>
|
||||
<div>
|
||||
Filters:
|
||||
<select onchange='filterCasesByUser(this.value)'>
|
||||
<option value=''></option>
|
||||
|
||||
{% for w in workers %}
|
||||
<option value='{{ w.id }}'>{{ w.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% for w in workers %}
|
||||
<option value='{{ w.id }}'>{{ w.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="table-responsive p-0">
|
||||
<table class="table align-items-center mb-0">
|
||||
@ -86,12 +86,12 @@
|
||||
</td>
|
||||
<td class='align-right'>
|
||||
{% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %}
|
||||
<a href='{{ path('app_edit_case', {id: c.id}) }}' class='' title='Edit Case' data-toggle='tooltip'>
|
||||
<i class="material-symbols-rounded opacity-5">edit</i>
|
||||
</a>
|
||||
<a href='{{ path('app_assign_case', {id: c.id}) }}' class='' title='Assign Case Worker' data-toggle='tooltip'>
|
||||
<i class='material-symbols-rounded opacity-5'>badge</i>
|
||||
</a>
|
||||
<a href='{{ path('app_edit_case', {id: c.id}) }}' class='' title='Edit Case' data-toggle='tooltip'>
|
||||
<i class="material-symbols-rounded opacity-5">edit</i>
|
||||
</a>
|
||||
<a href='{{ path('app_assign_case', {id: c.id}) }}' class='' title='Assign Case Worker' data-toggle='tooltip'>
|
||||
<i class='material-symbols-rounded opacity-5'>badge</i>
|
||||
</a>
|
||||
{% endif %}
|
||||
<a href='{{ path('app_list_referrals', {id: c.id}) }}' class='' title='List Referrals' data-toggle='tooltip'>
|
||||
<i class='material-symbols-rounded opacity-5'>create_new_folder</i>
|
||||
@ -104,14 +104,14 @@
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div></main>{% endblock %}
|
||||
</main>
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user