move list-cases twig template to admin portion

This commit is contained in:
Ryan Prather 2024-12-19 02:40:59 +00:00
parent d193e9ba79
commit e6b3850b45

View File

@ -16,24 +16,24 @@
<h6 class="text-white text-capitalize ps-3">Case List</h6> <h6 class="text-white text-capitalize ps-3">Case List</h6>
</div> </div>
{% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %} {% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %}
<div> <div>
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_add_case') }}', '_self')">Add Case</button> <button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_add_case') }}', '_self')">Add Case</button>
</div> </div>
{% endif %} {% endif %}
</div> </div>
</div> </div>
<div class="card-body px-0 pb-2"> <div class="card-body px-0 pb-2">
{% if is_granted('ROLE_ADMIN') %} {% if is_granted('ROLE_ADMIN') %}
<div> <div>
Filters: Filters:
<select onchange='filterCasesByUser(this.value)'> <select onchange='filterCasesByUser(this.value)'>
<option value=''></option> <option value=''></option>
{% for w in workers %} {% for w in workers %}
<option value='{{ w.id }}'>{{ w.name }}</option> <option value='{{ w.id }}'>{{ w.name }}</option>
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
{% endif %} {% endif %}
<div class="table-responsive p-0"> <div class="table-responsive p-0">
<table class="table align-items-center mb-0"> <table class="table align-items-center mb-0">
@ -86,12 +86,12 @@
</td> </td>
<td class='align-right'> <td class='align-right'>
{% if is_granted('ROLE_CASE_MANAGER') or is_granted('ROLE_ADMIN') %} {% 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'> <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> <i class="material-symbols-rounded opacity-5">edit</i>
</a> </a>
<a href='{{ path('app_assign_case', {id: c.id}) }}' class='' title='Assign Case Worker' data-toggle='tooltip'> <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> <i class='material-symbols-rounded opacity-5'>badge</i>
</a> </a>
{% endif %} {% endif %}
<a href='{{ path('app_list_referrals', {id: c.id}) }}' class='' title='List Referrals' data-toggle='tooltip'> <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> <i class='material-symbols-rounded opacity-5'>create_new_folder</i>
@ -104,14 +104,14 @@
</a> </a>
</td> </td>
</tr> </tr>
</td> {% endfor %}
</tbody> </tbody>
</tr> </table>
{% endfor %} </div>
</tbody> </div>
</table> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </main>
</div></div></main>{% endblock %} {% endblock %}