add columns to note when supervisor and case worker signed staff notes and update available buttons
This commit is contained in:
parent
03352f9b28
commit
7bcba9a930
@ -16,9 +16,9 @@
|
|||||||
<h6 class="text-white text-capitalize ps-3">{{ case.caseName }}</h6>
|
<h6 class="text-white text-capitalize ps-3">{{ case.caseName }}</h6>
|
||||||
</div>
|
</div>
|
||||||
{% if app.user.id == staffId %}
|
{% if app.user.id == staffId %}
|
||||||
<div>
|
<div>
|
||||||
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_staff_add_note', {caseId: case.id}) }}', '_self')">Add Staff Note</button>
|
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('{{ path('app_staff_add_note', {caseId: case.id}) }}', '_self')">Add Staff Note</button>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -28,6 +28,8 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Date</th>
|
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Date</th>
|
||||||
|
<th class='text-uppercase text-secondary text-xxs font-weight-bolder opacity-7'>Supervisor Signed</th>
|
||||||
|
<th class='text-uppercase text-secondary text-xxs font-weight-bolder opacity-7'>Signed</th>
|
||||||
<th class="text-secondary opacity-7"></th>
|
<th class="text-secondary opacity-7"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -41,10 +43,40 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if n.supervisorSignDateTime %}
|
||||||
|
{{ n.supervisorSignDateTime|date('F j, Y h:i a') }}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if n.workerSignDatetime %}
|
||||||
|
{{ n.workerSignDatetime|date('F j, Y h:i a') }}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td class='align-right'>
|
<td class='align-right'>
|
||||||
<a href='{{ path('app_staff_edit_note', {noteId: n.id}) }}' title='Edit Note'>
|
{% if isWorker and not n.workerSignDatetime %}
|
||||||
<i class='material-symbols-rounded opacity-5'>edit</i>
|
<a href='{{ path('app_staff_edit_note', {noteId: n.id}) }}' title='Edit Note'>
|
||||||
</a>
|
<i class='material-symbols-rounded opacity-5'>edit</i>
|
||||||
|
</a>
|
||||||
|
<a href='{{ path('app_staff_sign_my_note', {noteId: n.id}) }}' title='Sign Note'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>draw</i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if isWorker and n.workerSignDatetime %}
|
||||||
|
<a href='{{ path('app_staff_view_note', {noteId: n.id}) }}' title='View Note'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>visibility</i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if not isWorker and not n.supervisorSignDateTime %}
|
||||||
|
<a href='{{ path('app_staff_sign_worker_note', {noteId: n.id}) }}' title='Sign Note'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>draw</i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
{% if not isWorker and n.supervisorSignDateTime %}
|
||||||
|
<a href='{{ path('app_staff_view_note', {noteId: n.id}) }}' title='View Note'>
|
||||||
|
<i class='material-symbols-rounded opacity-5'>visibility</i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user