Hide Add Case button if not admin or case manager
Hide case filter if user not admin or case manager Hide case edit button and case assign button if not admin or case manager
This commit is contained in:
parent
c76783b79f
commit
de81c2ffb1
@ -15,12 +15,15 @@
|
|||||||
<div>
|
<div>
|
||||||
<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') %}
|
||||||
<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 %}
|
||||||
</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') %}
|
||||||
<div>
|
<div>
|
||||||
Filters:
|
Filters:
|
||||||
<select onchange='filterCasesByUser(this.value)'>
|
<select onchange='filterCasesByUser(this.value)'>
|
||||||
@ -31,6 +34,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
{% 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">
|
||||||
<thead>
|
<thead>
|
||||||
@ -81,12 +85,14 @@
|
|||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td class='align-right'>
|
<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'>
|
<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 %}
|
||||||
<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>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user