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>
|
||||
<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>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body px-0 pb-2">
|
||||
{% if is_granted('ROLE_ADMIN') %}
|
||||
<div>
|
||||
Filters:
|
||||
<select onchange='filterCasesByUser(this.value)'>
|
||||
@ -31,6 +34,7 @@
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="table-responsive p-0">
|
||||
<table class="table align-items-center mb-0">
|
||||
<thead>
|
||||
@ -81,12 +85,14 @@
|
||||
</p>
|
||||
</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>
|
||||
{% 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>
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user