Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into vfep-1602
Browse files Browse the repository at this point in the history
  • Loading branch information
GcioNapoleon committed Jul 15, 2024
2 parents 8d72185 + 95c2c26 commit 752abf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/site/facilities/service_address.drupal.liquid
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{% assign hasAddress = false %}
{% if serviceLocationAddress.fieldUseFacilityAddress and facilityAddress %}
{% assign hasAddress = true %}
{% assign addressData = facilityAddress %}
{% elsif location.entity.fieldServiceLocationAddress %}
{% assign hasAddress = true %}
{% assign addressData = location.entity.fieldServiceLocationAddress.entity.fieldAddress %}
{% elsif serviceLocationAddress %}
{% assign addressData = serviceLocationAddress.fieldAddress %}
{% assign hasAddress = true %}
{% endif %}

{% if serviceLocationAddress.fieldClinicName or hasAddress or serviceLocationAddress.fieldBuildingNameNumber or serviceLocationAddress.fieldWingFloorOrRoomNumber %}
{% if hasAddress or serviceLocationAddress.fieldClinicName or serviceLocationAddress.fieldBuildingNameNumber or serviceLocationAddress.fieldWingFloorOrRoomNumber %}
<div class="vads-u-display--flex vads-u-flex-direction--column">
{% if serviceLocationAddress.fieldClinicName %}
<h{{ serviceLocationAddressHeaderLevel }}>
Expand All @@ -16,25 +16,25 @@
{% elsif serviceLocationAddress.fieldBuildingNameNumber or serviceLocationAddress.fieldWingFloorOrRoomNumber %}
<h{{ serviceLocationAddressHeaderLevel }}>
Location
</h{{ serviceLocationAddressHeaderLevel }}>
</h{{ serviceLocationAddressHeaderLevel }}>
{% endif %}


{% if hasAddress %}
{% if addressData.addressLine1 and not serviceLocationAddress.fieldUseFacilityAddress %}
{% if addressData.addressLine1 and serviceLocationAddress.fieldUseFacilityAddress != true %}
<span class="vads-u-margin-bottom--0">
{{ addressData.addressLine1 }}
</span>
{% endif %}

{% if addressData.addressLine2 and not serviceLocationAddress.fieldUseFacilityAddress %}
{% if addressData.addressLine2 and serviceLocationAddress.fieldUseFacilityAddress != true %}
<span class="vads-u-margin-bottom--0">
{{ addressData.addressLine2 }}
</span>
{% endif %}

{% if addressData.locality and not serviceLocationAddress.fieldUseFacilityAddress %}
{% if addressData.administrativeArea%}
{% if addressData.locality and serviceLocationAddress.fieldUseFacilityAddress != true %}
{% if addressData.administrativeArea %}
{% if addressData.postalCode %}
<span class="vads-u-margin-bottom--0">
{{ addressData.locality }},
Expand Down
1 change: 0 additions & 1 deletion src/site/paragraphs/service_location.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@
{% endif %}



{% comment %} Includes header for clinic name {% endcomment %}
{% if single.fieldServiceLocationAddress.entity %}
{% include "src/site/facilities/service_address.drupal.liquid" with
Expand Down

0 comments on commit 752abf5

Please sign in to comment.