up: various twig templates

* various twig updates
This commit is contained in:
2025-02-10 16:18:53 -05:00
parent b828333222
commit c9cf8d7e0a
7 changed files with 131 additions and 58 deletions

View File

@ -18,7 +18,18 @@
</p>
</div>
{% for c in cases %}
<div class='col-xl-3 col-sm-6 mb-xl-0 mb-4'>
{% set latestNote = c.getStaffNotes()[0] %}
{% set status = '#ff0000' %}
{% set symbol = 'cancel' %}
{% if latestNote.getWorkerSignDatetime() %}
{% set status = '#00ff00' %}
{% set symbol = 'check_circle' %}
{% elseif latestNote.getSupervisorSignDateTime() %}
{% set status = '#ffff00' %}
{% set symbol = 'warning' %}
{% endif %}
<div class='col-xl-4 col-med-6 col-sm-6 col-12 mb-xl-0 mb-4'>
<div class='card'>
<div class='card-header p-2 ps-3'>
<div class='d-flex justify-content-between'>
@ -38,6 +49,9 @@
<p class='mb-0 text-sm'>
<span class='text-info font-weight-bolder'>
<a href='{{ path('app_staff_list_notes', {staffId: user.id, caseId: c.id}) }}'>Staff Notes</a>
<span class='material-symbols-rounded opacity-7' style='color:{{ status }}' title='Last Note: {{ latestNote.date|date('M j, Y') }}'>
{{ symbol }}
</span>
</span>
</p>
</div>

View File

@ -12,6 +12,16 @@
<p class='mb-4'></p>
</div>
{% for c in cases %}
{% set latestNote = c.getStaffNotes()[0] %}
{% set status = '#ff0000' %}
{% set symbol = 'cancel' %}
{% if latestNote.getWorkerSignDatetime() %}
{% set status = '#00ff00' %}
{% set symbol = 'check_circle' %}
{% elseif latestNote.getSupervisorSignDateTime() %}
{% set status = '#ffff00' %}
{% set symbol = 'warning' %}
{% endif %}
<div class='col-xl-3 col-sm-6 mb-xl-0 mb-4'>
<div class='card'>
<div class='card-header p-2 ps-3'>
@ -29,9 +39,16 @@
</div>
<hr class='dark horizontal my-0'>
<div class='card-footer p-2 ps-3'>
<p class='mb-0 text-sm'>
<span class='text-info' style='color:{{ status }} !important;'>
</span>
</p>
<p class='mb-0 text-sm'>
<span class='text-info font-weight-bolder'>
<a href='{{ path('app_staff_list_notes', {staffId: staffId, caseId: c.id}) }}'>Staff Notes</a>
<span class='material-symbols-rounded opacity-7' style='color:{{ status }}' title='Last Note: {{ latestNote.date|date('M j, Y') }}'>
{{ symbol }}
</span>
</span>
</p>
</div>

View File

@ -12,19 +12,20 @@
<p class='mb-4'></p>
</div>
{% for s in staff %}
<div class='col-xl-3 col-sm-6 mb-xl-0 mb-4'>
<div class='col-xl-4 col-med-6 col-sm-6 col-12 mb-xl-0 mb-4'>
<div class='card'>
<div class='card-header p-2 ps-3'>
<div class='d-flex justify-content-between'>
<div>
<h4 class='mb-0'>{{ s.name }}</h4>
<p class='text-sm mb-0 text-capitalize'>
<a href='mailto:{{ s.email }}'>{{ s.email }}</a><br />
{% if s.workPhone %}<a href='tel:{{ s.workPhone }}'>{{ s.getFormattedPhone() }}</a>{% endif %}
{% if s.workPhone %}<a href='tel:{{ s.workPhone }}'>{{ s.getFormattedPhone() }}</a>{% endif %}
</p>
</div>
<div class="icon icon-md icon-shape bg-gradient-dark shadow-dark shadow text-center border-radius-lg">
<i class="material-symbols-rounded opacity-10">weekend</i>
<a href='mailto:{{ s.email }}'>
<i class="material-symbols-rounded opacity-10">weekend</i>
</a>
</div>
</div>
</div>