Skip to content

Commit

Permalink
VA-16652: Avoid duplicate Appt headers
Browse files Browse the repository at this point in the history
  • Loading branch information
maxx1128 committed Feb 12, 2024
1 parent 992fd59 commit 224ef77
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/site/facilities/health_care_local_health_service.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
{% endfor %}

{% if locationEntity.fieldReferralRequired or locationEntity.fieldWalkInsAccepted or locationEntity.fieldOnlineSchedulingAvailabl %}
<h5 data-template="facilities/health_care_local_health_service">Appointments</h5>

{% assign showAppointmentsHeader = true %}
{% 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.'
Expand All @@ -25,22 +24,28 @@
{% assign introText = '' %}
{% endcase %}

{% for numberFirst in locationEntity.fieldPhoneNumbersParagraph %}
{% if introText == '' and numberFirst.entity.fieldPhoneLabel == "Appointments" and forloop.first %}
{% assign showAppointmentsHeader = false %}
{% endif %}
{% endfor %}

{% if showAppointmentsHeader %}
<h5 data-template="facilities/health_care_local_health_service">Appointments</h5>
{% endif %}

{% 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">
fieldPhoneNumber
fieldMentalHealthPhone

{% if isMentalHealthService and fieldMentalHealthPhone %}
{% assign localServiceMainNumber = fieldMentalHealthPhone %}
{% else %}
Expand Down

0 comments on commit 224ef77

Please sign in to comment.