Skip to content

Commit

Permalink
use phone.drupal.liquid (#2101)
Browse files Browse the repository at this point in the history
  • Loading branch information
eselkin authored May 23, 2024
1 parent 16bf9d1 commit 4e8e61f
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions src/site/paragraphs/service_location.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,10 @@
{% if single.fieldOtherPhoneNumbers.length > 0 %}
{% comment %} other phone numbers {% endcomment %}
<div class="vads-u-display--flex vads-u-flex-direction--column" data-template="facilities/health_care_local_health_service" data-testid="service-location-show-other-phone-numbers" >
{% for number in single.fieldOtherPhoneNumbers %}
{% include "src/site/components/phone-number.drupal.liquid" with
phoneNumber = number.entity.fieldPhoneNumber
phoneExtension = number.entity.fieldPhoneExtension
phoneLabel = number.entity.fieldPhoneLabel
phoneHeaderLevel = serviceLocationH
%}
{% endfor %}
{% include "src/site/components/phone.drupal.liquid" with
numbers = single.fieldOtherPhoneNumbers
phoneHeaderLevel = serviceLocationH
%}
</div>
{% endif %}
Expand Down Expand Up @@ -219,14 +215,10 @@
Display each additional contact phone number provided
{% endcomment %}
<div class="vads-u-display--flex vads-u-flex-direction--column" data-testid="service-location-show-contact-phone-numbers">
{% for number in single.fieldPhone %}
{% include "src/site/components/phone-number.drupal.liquid" with
phoneNumber = number.entity.fieldPhoneNumber
phoneExtension = number.entity.fieldPhoneExtension
phoneLabel = number.entity.fieldPhoneLabel
phoneHeaderLevel = serviceLocationH
%}
{% endfor %}
{% include "src/site/components/phone.drupal.liquid" with
numbers = single.fieldPhone
phoneHeaderLevel = serviceLocationH
%}
</div>
{% endif %}
Expand Down

0 comments on commit 4e8e61f

Please sign in to comment.