add block for assigning documents to a case, use company timezone, update anchor tag class

This commit is contained in:
Ryan Prather 2025-01-10 15:03:53 +00:00
parent 722954d0d0
commit b7b0c8e6c4
19 changed files with 400 additions and 73 deletions

View File

@ -81,6 +81,15 @@
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
{% for d in docs %}
<span class='check'>
<input type='checkbox' name='{{ field_name(form.docs) }}[]' id='{{ d.title|replace({' ': '-'}) }}' value='{{ d.id }}'/>
<label for='{{ d.title|replace({' ': '-'}) }}'>{{ d.title }}</label>
</span>
{% endfor %}
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
@ -151,3 +160,11 @@
</section>
</main>
{% endblock %}
{% block page_css %}
<style type='text/css'>
.check {
margin: 0 5px;
}
</style>
{% endblock %}

View File

@ -31,12 +31,12 @@
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_admitDate' class='form-label'>Admit Date</label>
<input type='date' name='{{ field_name(form.admitDate) }}' id='case_form_admitDate' value='{{ case.admitDate|date('Y-m-d') }}' class='form-control'/>
<input type='date' name='{{ field_name(form.admitDate) }}' id='case_form_admitDate' value='{{ case.admitDate|date('Y-m-d', company_timezone) }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.closeDate %} is-filled{% endif %}'>
<label for='case_form_closeDate' class='form-label'>Close Date</label>
<input type='date' name='{{ field_name(form.closeDate) }}' id='case_form_closeDate' value='{% if case.closeDate %}{{ case.closeDate|date('Y-m-d') }}{% endif %}' class='form-control'/>
<input type='date' name='{{ field_name(form.closeDate) }}' id='case_form_closeDate' value='{% if case.closeDate %}{{ case.closeDate|date('Y-m-d', company_timezone) }}{% endif %}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>

View File

@ -86,20 +86,20 @@
</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'>
<a href='{{ path('app_edit_case', {id: c.id}) }}' class='text-secondary ' 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'>
<a href='{{ path('app_assign_case', {id: c.id}) }}' class='text-secondary ' 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'>
<a href='{{ path('app_list_referrals', {id: c.id}) }}' class='text-secondary ' title='List Referrals' data-toggle='tooltip'>
<i class='material-symbols-rounded opacity-5'>create_new_folder</i>
</a>
<a href='{{ path('app_case_members', {id: c.id}) }}' class='' title='List Members' data-toggle='tooltip'>
<a href='{{ path('app_case_members', {id: c.id}) }}' class='text-secondary ' title='List Members' data-toggle='tooltip'>
<i class='material-symbols-rounded opacity-5'>group_add</i>
</a>
<a href='{{ path('app_case_notes', {id: c.id}) }}' class='' title='Show Notes' data-toggle='tooltip'>
<a href='{{ path('app_case_notes', {id: c.id}) }}' class='text-secondary ' title='Show Notes' data-toggle='tooltip'>
<i class='material-symbols-rounded opacity-5'>clinical_notes</i>
</a>
</td>

View File

@ -58,7 +58,9 @@
{{ src.phone }}
</td>
<td class='align-middle'>
<a href="{{ path('app_edit_source', {id: src.id}) }}" class='text-secondary font-weight-bold text-xs' data-toggle='tooltip' data-original-title='Edit Source'>Edit</a>
<a href="{{ path('app_edit_source', {id: src.id}) }}" class='text-secondary font-weight-bold text-xs'>
<i class='material-symbols-rounded opacity-5'>edit</i>
</a>
</td>
</tr>
{% endfor %}

View File

@ -49,9 +49,7 @@
<td>
<div class='d-flex px-2 py-1'>
<div class='d-flex flex-column justify-content-center'>
<h6 class='mb-0 text-small'>
{{ l.name }}
</h6>
<h6 class='mb-0 text-small'>{{ l.name }}</h6>
</div>
</div>
</td>
@ -62,7 +60,7 @@
{{ l.lat }}/{{ l.lon }}
</td>
<td class='align-middle'>
<a href='{{ path('app_case_edit_address', {id: l.id}) }}' title='Edit Location'>
<a href='{{ path('app_case_edit_address', {id: l.id}) }}' class='text-secondary' title='Edit Location'>
<i class="material-symbols-rounded opacity-5">edit</i>
</a>
</td>

View File

@ -55,7 +55,7 @@
<tbody id='itineraryList'>
{% for i in itineraries %}
<tr>
<td>{{ i.date|date('F j, Y') }}</td>
<td>{{ i.date|date('F j, Y', company_timezone) }}</td>
<td>{{ i.memberCase.caseName }}</td>
<td>{{ i.originLocation.name }}</td>
<td>{{ i.destLocation.name }}</td>

View File

@ -73,9 +73,12 @@
{% endif %}
</td>
<td class='align-middle'>
<a href='{{ path('app_case_edit_member', {caseId: case.id, memberId: member.id}) }}' title='Edit Member'>
<a href='{{ path('app_case_edit_member', {caseId: case.id, memberId: member.id}) }}' class='text-secondary' title='Edit Member'>
<i class="material-symbols-rounded opacity-5">edit</i>
</a>
<a href='{{ path('app_assign_case_documents', {caseId: case.id, memberId: member.id}) }}' class='text-secondary' title='Assign Case Document'>
<i class='material-symbols-rounded opacity-5'>content_copy</i>
</a>
</td>
</tr>
{% endfor %}

View File

@ -60,16 +60,16 @@
<p class='text-center text-xs font-weight-bold mb-0'>{{ c.referrals|length }}</p>
</td>
<td class='align-right'>
<a href='{{ path('app_view_case', {caseId: c.id}) }}' title='View Case'>
<a href='{{ path('app_view_case', {caseId: c.id}) }}' class='text-secondary' title='View Case'>
<i class='material-symbols-rounded opacity-5'>visibility</i>
</a>
<a href='{{ path('app_list_referrals', {id: c.id}) }}' title='List Referrals'>
<a href='{{ path('app_list_referrals', {id: c.id}) }}' class='text-secondary' title='List Referrals'>
<i class='material-symbols-rounded opacity-5'>create_new_folder</i>
</a>
<a href='{{ path('app_case_members', {id: c.id}) }}' title='List Members'>
<a href='{{ path('app_case_members', {id: c.id}) }}' class='text-secondary' title='List Members'>
<i class='material-symbols-rounded opacity-5'>group_add</i>
</a>
<a href='{{ path('app_case_notes', {id: c.id}) }}' title='Show Notes'>
<a href='{{ path('app_list_notes', {caseId: c.id}) }}' class='text-secondary' title='Show Notes'>
<i class='material-symbols-rounded opacity-5'>clinical_notes</i>
</a>
</td>

View File

@ -32,7 +32,7 @@
</span>
<span class='col {{ endDateWarning }}'>
Expiration Date:
{{ referral.endDate|date('M j, Y') }}
{{ referral.endDate|date('M j, Y', company_timezone) }}
</span>
</div>
<div class='row' style='margin-top:10px;'>

View File

@ -32,7 +32,7 @@
</span>
<span class='col {{ endDateWarning }}'>
Expiration Date:
{{ referral.endDate|date('M j, Y') }}
{{ referral.endDate|date('M j, Y', company_timezone) }}
</span>
</div>
<div class='row' style='margin-top:10px;'>

View File

@ -0,0 +1,292 @@
{% extends 'base.html.twig' %}
{% block body %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
{{ block('topnav', 'internal/libs/top-nav.html.twig') }}
{% if noteType == 'visit' %}
<section>
<div class="card card-plain">
<div class="card-header">
<h4 class="font-weight-bolder">Edit Referral Note</h4>
<p class="mb-0">{{ referral.memberCase.caseName }}</p>
</div>
<div class="card-body">
{{ form_start(form) }}
{{ form_errors(form) }}
<div class='container'>
<div class='row'>
{% set endDateWarning = '' %}
{% if date("+28 days") >= referral.endDate %}
{% set endDateWarning = 'bg-gradient-warning' %}
{% elseif date("+14 days") >= referral.endDate %}
{% set endDateWarning = 'bg-gradient-danger text-white' %}
{% endif %}
<span class='col{% if referral.getHoursRemaining() < 40 %} bg-gradient-danger text-white{% endif %}'>
Hours:
{{ referral.hours }}
/
Remaining:
{{ referral.getHoursRemaining() }}
</span>
<span class='col {{ endDateWarning }}'>
Expiration Date:
{{ referral.endDate|date('M j, Y', company_timezone) }}
</span>
</div>
<div class='row' style='margin-top:10px;'>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_date'></label>
<input type='date' name='{{ field_name(form.date) }}' value='{{ field_value(form.date) }}' id='note_form_date' class='form-control' title='Visit Date'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_startTime'></label>
<input type='time' name='{{ field_name(form.startTime) }}' value='{{ field_value(form.startTime) }}' id='note_form_startTime' onchange='calcTime()' class='form-control' title='Start Time'/>&nbsp;&nbsp;
<label for='note_form_endTime'></label>
<input type='time' name='{{ field_name(form.endTime) }}' value='{{ field_value(form.endTime) }}' id='note_form_endTime' onchange='calcTime()' class='form-control' title='End Time'/>
</div>
<div class='input-group input-group-outline mb-3'>
<input type='text' id='case-mins' style='width:49%;margin-right:5px;' disabled='disabled' title='Case Minutes'/>
<input type='text' id='case-hours' style='width:49%;margin-left:5px;' disabled='disabled' title='Case Hours'/>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.status) }}' id='note_form_status' class='form-control'>
<option value=''>-- Status --</option>
{% for s in enum('App\\Enums\\NoteStatus').cases() %}
<option value='{{ s.value }}' {% if s.value == note.status.value %} selected='selected' {% endif %}>{{ s.value|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.location) }}' id='note_form_location' class='form-control'>
<option value=''>-- Location --</option>
{% for l in enum('App\\Enums\\NoteLocation').cases() %}
<option value='{{ l.value }}' {% if l.value == note.location.value %} selected='selected' {% endif %}>{{ l.value }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.method) }}' id='note_form_method' class='form-control'>
<option value=''>-- Method --</option>
{% for m in enum('App\\Enums\\NoteMethod').cases() %}
<option value='{{ m.value }}' {% if m.value == note.method.value %} selected='selected' {% endif %}>{{ m.name|replace({'_': ' '})|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_parentalRole'>Parental Role</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.parentalRole) }}' id='note_form_parentalRole' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.parentalRole.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_childDevelopment'>Child Development</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.childDevelopment) }}' id='note_form_childDevelopment' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.childDevelopment.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_appropriateResponse'>Appropriate Response</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.appropriateResponse) }}' id='note_form_appropriateResponse' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.appropriateResponse.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_childAheadOfSelf'>Child Ahead Of Self</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.childAheadOfSelf) }}' id='note_form_childAheadOfSelf' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.childAheadOfSelf.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_showsEmpathy'>Shows Empathy</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.showsEmpathy) }}' id='note_form_showsEmpathy' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.showsEmpathy.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_childFocused'>Child Focused</label>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.childFocused) }}' id='note_form_childFocused' class='form-control'>
<option value=''>-- Select --</option>
{% for q in enum('App\\Enums\\VisitQualityLevel').cases() %}
<option value='{{ q.value }}' {% if q.value == note.childFocused.value %} selected='selected' {% endif %}>{{ q.name|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
{{ form_row(form.members, {
'label': 'Members Present',
'label_attr': {'class': ''},
'attr': {'class': 'form-control'}
}) }}
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_narrative'>Observed Narrative</label>
<textarea name='{{ field_name(form.narrative) }}' id='note_form_narrative' class='form-control' style='width:100%;height:200px;'>{{ field_value(form.narrative) }}</textarea>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_strengths'>Observed Strengths</label>
<textarea name='{{ field_name(form.strengths) }}' id='note_form_strengths' class='form-control' style='width:100%;height:200px;'>{{ field_value(form.strengths) }}</textarea>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_issues'>Observed Issues</label>
<textarea name='{{ field_name(form.issues) }}' id='note_form_issues' class='form-control' style='width:100%;height:100px;'>{{ field_value(form.issues) }}</textarea>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_recommendation'>Recommendation</label>
<textarea name='{{ field_name(form.recommendation) }}' id='note_form_recommendation' class='form-control' style='width:100%;height:100px;'>{{ field_value(form.recommendation) }}</textarea>
</div>
</div>
</div>
<div class='row'>
<div class="text-center">
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Save Note</button>
</div>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</section>
{% elseif noteType == 'standard' %}
<section>
<div class="card card-plain">
<div class="card-header">
<h4 class="font-weight-bolder">Add Referral Note</h4>
<p class="mb-0">{{ referral.memberCase.caseName }}</p>
</div>
<div class="card-body">
{{ form_start(form) }}
{{ form_errors(form) }}
<div class='container'>
<div class='row'>
{% set endDateWarning = '' %}
{% if date("+28 days") >= referral.endDate %}
{% set endDateWarning = 'bg-gradient-warning' %}
{% elseif date("+14 days") >= referral.endDate %}
{% set endDateWarning = 'bg-gradient-danger text-white' %}
{% endif %}
<span class='col{% if referral.hours < 40 %} bg-gradient-danger text-white{% endif %}'>
Hours:
{{ referral.hours }}
/
Remaining:
{{ referral.getHoursRemaining() }}
</span>
<span class='col {{ endDateWarning }}'>
Expiration Date:
{{ referral.endDate|date('M j, Y', company_timezone) }}
</span>
</div>
<div class='row' style='margin-top:10px;'>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_date'></label>
<input type='date' name='{{ field_name(form.date) }}' id='note_form_date' class='form-control' title='Visit Date'/>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_startTime'></label>
<input type='time' name='{{ field_name(form.startTime) }}' id='note_form_startTime' onchange='calcTime()' class='form-control' title='Start Time'/>&nbsp;&nbsp;
<label for='note_form_endTime'></label>
<input type='time' name='{{ field_name(form.endTime) }}' id='note_form_endTime' onchange='calcTime()' class='form-control' title='End Time'/>
</div>
<div class='input-group input-group-outline mb-3'>
<input type='text' id='case-mins' style='width:49%;margin-right:5px;' disabled='disabled' title='Case Minutes'/>
<input type='text' id='case-hours' style='width:49%;margin-left:5px;' disabled='disabled' title='Case Hours'/>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.status) }}' id='note_form_status' class='form-control'>
<option value=''>-- Status --</option>
{% for s in enum('App\\Enums\\NoteStatus').cases() %}
<option value='{{ s.value }}'>{{ s.value|capitalize }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.location) }}' id='note_form_location' class='form-control'>
<option value=''>-- Location --</option>
{% for l in enum('App\\Enums\\NoteLocation').cases() %}
<option value='{{ l.value }}' {% if l == default_location %} selected='selected' {% endif %}>{{ l.value }}</option>
{% endfor %}
</select>
</div>
<div class='input-group input-group-outline mb-3'>
<select name='{{ field_name(form.method) }}' id='note_form_method' class='form-control'>
<option value=''>-- Method --</option>
{% for m in enum('App\\Enums\\NoteMethod').cases() %}
<option value='{{ m.value }}' {% if m == default_method %} selected='selected' {% endif %}>{{ m.name|replace({'_': ' '})|lower|capitalize }}</option>
{% endfor %}
</select>
</div>
</div>
<div class='col'>
<div class='input-group input-group-outline mb-3'>
{{ form_row(form.members, {
'label': 'Members Present',
'label_attr': {'class': ''},
'attr': {'class': 'form-control'}
}) }}
</div>
<div class='input-group input-group-outline mb-3'>
<label for='case_note_note' class='form-label'>Notes</label>
<textarea name='{{ field_name(form.note) }}' id='case_note_note' class='form-control' style='width:100%;height:300px;'></textarea>
</div>
</div>
</div>
<div class='row'>
<div class="text-center">
<button type="submit" class="btn btn-lg bg-gradient-dark btn-lg w-100 mt-4 mb-0">Save Note</button>
</div>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</section>
{% endif %}
</main>
{% endblock %}

View File

@ -16,21 +16,6 @@
<h6 class="text-white text-capitalize ps-3">Referral Note List</h6>
</div>
<div>
<select id='referralList' onchange='filterNotes()'>
<option value=''>-- Select Referral --</option>
{% for c in cases %}
<optgroup label='{{ c.memberCase.caseName }}'>
{% for r in c.memberCase.referrals %}
<option value='{{ r.id }}'>
{{ r.referralId }}
/
{{ r.serviceCode.value }}
</option>
{% endfor %}
</optgroup>
{% endfor %}
</select>&nbsp;&nbsp;
<button type="button" class="btn btn-block btn-light mb-3" onclick="window.open('/index.php/add-note/'+document.getElementById('referralList').value, '_self')">Add Note</button>
</div>
</div>
@ -38,15 +23,33 @@
<div class="card-body px-0 pb-2">
<div>
Filter:&nbsp;&nbsp;
<input type='date' id='startDate' onchange='filterNotes()' title='Start Date'/>&nbsp;&nbsp;
<input type='date' id='endDate' onchange='filterNotes()' title='End Date'/>
<select id='referralList'>
<option value=''>-- Select Referral --</option>
{% for c in cases %}
<optgroup label='{{ c.memberCase.caseName }}'>
<option value='case-{{ c.memberCase.id }}' {% if case and case.id == c.memberCase.id %} selected='selected' {% endif %}>{{ c.memberCase.caseName }} All Referrals</option>
{% for r in c.memberCase.referrals %}
<option value='{{ r.id }}'>
{{ c.memberCase.caseName }}
/
{{ r.referralId }}
/
{{ r.serviceCode.value }}
</option>
{% endfor %}
</optgroup>
{% endfor %}
</select>&nbsp;&nbsp;
<input type='date' id='startDate' title='Start Date'/>&nbsp;&nbsp;
<input type='date' id='endDate' title='End Date'/>&nbsp;&nbsp;
<button name='filter-notes' id='filter-notes'>Filter Notes</button>
</div>
<div class="table-responsive p-0">
<table class="table align-items-center mb-0">
<thead>
<tr>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">DOS</th>
<th class="text-uppercase text-secondary text-xxs font-weight-bolder opacity-7 ps-2">Service</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Location</th>
<th class="text-center text-uppercase text-secondary text-xxs font-weight-bolder opacity-7">Method</th>
<th class='text-right text-uppercase text-secondary text-xxs font-weight-bolder opacity-7'>Members Present</th>
@ -54,22 +57,22 @@
</tr>
</thead>
<tbody id='note-list'>
{% for note in notes %}
{% set members = note.getMembers() %}
<tr>
<td>
{{ note.date|date('M j, Y') }}<br/>
{{ note.startTime|date('g:i a') }}-{{ note.endTime|date('g:i a') }}
</td>
<td>{{ note.referral.serviceCode.value }}</td>
<td class='text-center'>{{ note.location.value }}</td>
<td>{{ note.method.name|replace({'_': ' '})|lower|capitalize }}</td>
<td>
{{ dump(members) }}
</td>
<td></td>
</tr>
{% endfor %}
{% if caseNotes %}
{% for n in caseNotes %}
<tr>
<td>{{ n.date|date("F j, Y", company_timezone) }}<br/>
{{ n.startTime|date("g:i a", company_timezone) }}-{{ n.endTime|date("g:i a", company_timezone) }} ({{ n.calcTimeUsed() }})</td>
<td class='text-center'>{{ n.location.value }}</td>
<td class='text-center'>{{ n.method.name|lower|replace({"_": " "})|capitalize }}</td>
<td></td>
<td style='text-align: right;'>
<a href='/edit-note/{{ n.id }}' class='text-secondary' title='Edit Note'>
<i class="material-symbols-rounded opacity-5">edit</i>
</a>
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
@ -80,3 +83,15 @@
</div>
</main>
{% endblock %}
{% block page_js %}
<script type='module'>
import $ from "{{ asset('vendor/jquery/jquery.index.js') }}";
import {filterNotes} from "{{ asset('js/app/notes.js') }}";
window.$ = $;
$(function () {
$('#filter-notes').click(filterNotes);
});
</script>
{% endblock %}

View File

@ -41,7 +41,7 @@
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='referral_form_endDate' class='form-label'></label>
<input type='date' name='{{ field_name(form.endDate) }}' id='referral_form_endDate' value='{{ referral.endDate|date("Y-m-d") }}' class='form-control'/>
<input type='date' name='{{ field_name(form.endDate) }}' id='referral_form_endDate' value='{{ referral.endDate|date("Y-m-d", company_timezone) }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>

View File

@ -113,7 +113,7 @@
<p class='text-xs font-weight-bold mb-0'>{{ r.dischargeReason.value }}</p>
</td>
<td>
<p class='text-xs font-weight-bold mb-0'>{{ r.dischargeDate|date("F j, Y") }}</p>
<p class='text-xs font-weight-bold mb-0'>{{ r.dischargeDate|date("F j, Y", company_timezone) }}</p>
</td>
<td class='align-right'></td>
</tr>

View File

@ -28,12 +28,12 @@
<div class='input-group input-group-outline mb-3 is-filled'>
<label for='case_form_admitDate' class='form-label'>Admit Date</label>
<input type='date' name='admitDate' id='case_form_admitDate' value='{{ case.admitDate|date('Y-m-d') }}' class='form-control'/>
<input type='date' name='admitDate' id='case_form_admitDate' value='{{ case.admitDate|date('Y-m-d', company_timezone) }}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3{% if case.closeDate %} is-filled{% endif %}'>
<label for='case_form_closeDate' class='form-label'></label>
<input type='date' name='closeDate' id='case_form_closeDate' value='{% if case.closeDate %}{{ case.closeDate|date('Y-m-d') }}{% endif %}' class='form-control'/>
<input type='date' name='closeDate' id='case_form_closeDate' value='{% if case.closeDate %}{{ case.closeDate|date('Y-m-d', company_timezone) }}{% endif %}' class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3'>

View File

@ -4,7 +4,7 @@
{% endblock %}
{% block body %}
{% set today = date("now", "America/Indiana/Indianapolis") %}
{% set today = date("now", company_timezone) %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">
@ -61,10 +61,10 @@
<td>{{ r.getHours() }}</td>
<td>{{ r.lat|number_format(6) }}/{{ r.lon|number_format(6) }}</td>
<td class='align-right'>
<a href='{{ path('app_community_resource_edit', {id: r.id}) }}' title='Edit Resource'>
<a href='{{ path('app_community_resource_edit', {id: r.id}) }}' class='text-secondary' title='Edit Resource'>
<i class="material-symbols-rounded opacity-5">edit</i>
</a>
<a href='{{ path('app_community_resource_download', {id: r.id}) }}' title='Download vCard'>
<a href='{{ path('app_community_resource_download', {id: r.id}) }}' class='text-secondary' title='Download vCard'>
<i class="material-symbols-rounded opacity-5">import_contacts</i>
</a>
</td>

View File

@ -4,7 +4,7 @@
{% endblock %}
{% block body %}
{% set today = date("now", "America/Indiana/Indianapolis") %}
{% set today = date("now", company_timezone) %}
{{ block('nav', 'internal/libs/nav.html.twig') }}
<main class="main-content position-relative max-height-vh-100 h-100 border-radius-lg ">

View File

@ -39,41 +39,41 @@
<td>
<div class='d-flex px-2 py-1'>
<div class='d-flex flex-column justify-content-center'>
<h6 class='mb-0 text-small'>{{ n.date|date('F j, Y') }}</h6>
<h6 class='mb-0 text-small'>{{ n.date|date('F j, Y', company_timezone) }}</h6>
</div>
</div>
</td>
<td>
{% if n.supervisorSignDateTime %}
{{ n.supervisorSignDateTime|date('F j, Y h:i a') }}
{{ n.supervisorSignDateTime|date('F j, Y h:i a', company_timezone) }}
{% endif %}
</td>
<td>
{% if n.workerSignDatetime %}
{{ n.workerSignDatetime|date('F j, Y h:i a') }}
{{ n.workerSignDatetime|date('F j, Y h:i a', company_timezone) }}
{% endif %}
</td>
<td class='align-right'>
{% if isWorker and not n.workerSignDatetime %}
<a href='{{ path('app_staff_edit_note', {noteId: n.id}) }}' title='Edit Note'>
<a href='{{ path('app_staff_edit_note', {noteId: n.id}) }}' class='text-secondary' title='Edit Note'>
<i class='material-symbols-rounded opacity-5'>edit</i>
</a>
<a href='{{ path('app_staff_sign_my_note', {noteId: n.id}) }}' title='Sign Note'>
<a href='{{ path('app_staff_sign_my_note', {noteId: n.id}) }}' class='text-secondary' 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'>
<a href='{{ path('app_staff_view_note', {noteId: n.id}) }}' class='text-secondary' 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'>
<a href='{{ path('app_staff_sign_worker_note', {noteId: n.id}) }}' class='text-secondary' 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'>
<a href='{{ path('app_staff_view_note', {noteId: n.id}) }}' class='text-secondary' title='View Note'>
<i class='material-symbols-rounded opacity-5'>visibility</i>
</a>
{% endif %}

View File

@ -19,17 +19,17 @@
<div class='col'>
<div>
<div>Supervisor:
{{ note.supervisorSignDateTime|date("F j, Y h:i a") }}</div>
{{ note.supervisorSignDateTime|date("F j, Y h:i a", company_timezone) }}</div>
<div>Case Worker:
{% if note.workerSignDatetime %}
{{ note.workerSignDatetime|date("F j, Y h:i a") }}{% else %}Unsigned
{{ note.workerSignDatetime|date("F j, Y h:i a", company_timezone) }}{% else %}Unsigned
{% endif %}
</div>
</div>
<div class='input-group input-group-outline mb-3'>
<label for='note_form_date'></label>
<input type='date' name='date' id='note_form_date' value='{{ note.date|date("Y-m-d") }}' disabled="disabled" class='form-control'/>
<input type='date' name='date' id='note_form_date' value='{{ note.date|date("Y-m-d", company_timezone) }}' disabled="disabled" class='form-control'/>
</div>
<div class='input-group input-group-outline mb-3 is-filled'>