-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vacms 16144 VAMC service location paragraphs - and merge VBA (#1912)
* Move to Service Location Paragraphs in VAMC * merging of service_locations paragraphs * Service Hours * remove old service_location paragraphs * remove consolelog * typo on include * conditions when to show Appointments * show appointments simplification * test not possible on paragraph * testing * naming * spacing * indent * non-clinical * clena up spacing * spacing class * improving spacing slowly * spacing again * working spacing * more spacing * correct order of phone numbers and h5 for appointment related phone numbers * order * borders were not showing * bordered * accidental vet center accordion border * fix headers * VA-15959: Update VBA Service Location query for int branch (#1936) * fix for empty extensions * v3 components added, built, updated * remove extra vetcenter attributes to liquid * fix testing on phone numbers now that using va-telephone component * add more testing * make use of regexes better * explanation of matches * allow for short codes * additional info uswds * spacing on Appointments header * remove Vet Center tests from this branch * remove Vet Center tests from this branch * replace should have 2 args * remove debugging * remove extra div and strongs * optional * VACMS-17513: Remove unspecified referrals from front-end (#1982) * shows main phone or appt phone numbers and shows main phone or contact phone numbers (#1993) * Appointments top section visible when walkins unspecified and not remove_text (#2009) * Appointments top section visible when walkins unspecified * spacing * simplify conditions -- no change in logic * fix? works locally- did not push last time because of new package.json * update to variables * not elsif (#2002) * VACMS 17632 no card on non-clinical service locations (#2024) * no card on non-clinical service locations * remove comment * updated spacing * VACMS 17844 update service options values for office visits and virtual support (#2035) * working values for updated office visits and virtual * update comment * VA-17710: Change Online Schedule link for VBA Services (#2026) * memBefore memAfter * trying graceful fs * fix from VACMS-18069-EMFILE-error-memoryUsage * VA-17598: Manage Benefits online link update (#2057) * VA-17598: Add missing benefits paragraph (#2078) * hasAddress default to false --------- Co-authored-by: Max Antonucci <[email protected]> Co-authored-by: Max Antonucci <[email protected]>
- Loading branch information
1 parent
9289066
commit 53d7f85
Showing
22 changed files
with
1,236 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,4 @@ | |
{% endfor %} | ||
{% endif %} | ||
</div> | ||
{% endif %} | ||
{% endif %} |
101 changes: 3 additions & 98 deletions
101
src/site/facilities/health_care_local_health_service.drupal.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,7 @@ | ||
<h4 data-template="facilities/health_care_local_health_service">Contact information</h4> | ||
|
||
{% for location in locations %} | ||
{% include "src/site/paragraphs/service_location.drupal.liquid" with | ||
single = location.entity | ||
isMentalHealth = isMentalHealthService | ||
serviceLocationSubHeaderLevel = 5 | ||
single = location.entity | ||
isMentalHealth = isMentalHealthService | ||
serviceLocationSubHeaderLevel = 4 | ||
%} | ||
{% endfor %} | ||
|
||
{% if locationEntity.fieldReferralRequired or locationEntity.fieldWalkInsAccepted or locationEntity.fieldOnlineSchedulingAvailabl %} | ||
<h5 data-template="facilities/health_care_local_health_service">Appointments</h5> | ||
|
||
{% assign introText = 'Contact us to schedule, reschedule, or | ||
cancel your appointment. If a referral is required, you’ll need to contact your | ||
primary care provider first.' | ||
%} | ||
|
||
{% case locationEntity.fieldHserviceApptIntroSelect %} | ||
{% when 'custom_intro_text' %} | ||
{% if locationEntity.fieldHserviceApptLeadin != empty %} | ||
{% assign introText = locationEntity.fieldHserviceApptLeadin %} | ||
{% endif %} | ||
{% when 'no_intro_text' %} | ||
{% assign introText = '' %} | ||
{% endcase %} | ||
|
||
{% if introText != empty %} | ||
<p class="vads-u-margin--0" data-template="facilities/health_care_local_health_service"> | ||
{{ introText }} | ||
</p> | ||
{% endif %} | ||
|
||
|
||
{% comment %} | ||
if fieldPhoneNumbersParagraph has values | ||
use phone numbers from entities | ||
{% endcomment %} | ||
{% if locationEntity.fieldPhoneNumbersParagraph.length > 0 %} | ||
<div class="vads-u-display--flex vads-u-flex-direction--column vads-u-margin-bottom--1" data-template="facilities/health_care_local_health_service"> | ||
{% for number in locationEntity.fieldPhoneNumbersParagraph %} | ||
{% include "src/site/components/phone-number.drupal.liquid" with | ||
phoneNumber = number.entity.fieldPhoneNumber | ||
phoneExtension = number.entity.fieldPhoneExtension | ||
phoneLabel = number.entity.fieldPhoneLabel | ||
phoneHeaderLevel = 5 | ||
sms = false | ||
fax = false | ||
tty = false | ||
%} | ||
{% endfor %} | ||
</div> | ||
{% else %} | ||
{% if isMentalHealthService and fieldMentalHealthPhone %} | ||
{% assign localHealthServiceMainNumber = fieldMentalHealthPhone %} | ||
{% else %} | ||
{% assign localHealthServiceMainNumber = fieldPhoneNumber %} | ||
{% endif %} | ||
|
||
<div class="vads-u-display--flex vads-u-flex-direction--column vads-u-margin-bottom--1" data-template="facilities/health_care_local_health_service"> | ||
{% include "src/site/components/phone-number.drupal.liquid" with | ||
phoneNumber = localHealthServiceMainNumber | ||
phoneLabel = 'Main Phone' | ||
phoneHeaderLevel = 5 | ||
sms = false | ||
fax = false | ||
tty = false | ||
%} | ||
</div> | ||
{% endif %} | ||
|
||
{% assign OMIT_REFERRAL_OR_WALKIN = "not_applicable, unknown" %} | ||
|
||
{% if locationEntity.fieldReferralRequired %} | ||
{% unless OMIT_REFERRAL_OR_WALKIN contains locationEntity.fieldReferralRequired %} | ||
<p class="vads-u-margin-bottom--1" data-template="facilities/health_care_local_health_service"> | ||
<strong>Referral required?</strong> | ||
{% if locationEntity.fieldReferralRequired == '1' %}Yes{% else %}No{% endif %} | ||
</p> | ||
{% endunless %} | ||
{% endif %} | ||
|
||
{% if locationEntity.fieldWalkInsAccepted %} | ||
{% unless OMIT_REFERRAL_OR_WALKIN contains locationEntity.fieldWalkInsAccepted %} | ||
<p class="vads-u-margin-bottom--1" data-template="facilities/health_care_local_health_service"> | ||
<strong>Walk-ins accepted?</strong> | ||
{% if locationEntity.fieldWalkInsAccepted == '1' %}Yes{% else %}No{% endif %} | ||
</p> | ||
{% endunless %} | ||
{% endif %} | ||
|
||
{% if locationEntity.fieldOnlineSchedulingAvailabl == '1' %} | ||
<a class="usa-button vads-u-margin-bottom--0" | ||
data-entity-substitution="canonical" | ||
data-entity-type="node" | ||
data-template="facilities/health_care_local_health_service" | ||
href="/health-care/schedule-view-va-appointments" | ||
title="Schedule and manage health appointments"> | ||
Schedule an appointment online | ||
</a> | ||
{% endif %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/site/facilities/vha_facility_nonclinical_service.drupal.liquid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{% if facility.locations.length >= 1 %} | ||
{% assign typeOfLocation = "nonclinical" %} | ||
{% endif %} | ||
|
||
{% for location in facility.locations %} | ||
{% include "src/site/paragraphs/service_location.drupal.liquid" with | ||
single = location.entity | ||
fieldPhoneNumber = facility.fieldPhoneNumber | ||
fieldOfficeHours = facility.fieldOfficeHours | ||
serviceLocationSubHeaderLevel = serviceLocationSubHeaderLevel | ||
typeOfLocation = typeOfLocation | ||
%} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.