-
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-12082 Fix service accordions headers
- Loading branch information
Showing
1 changed file
with
53 additions
and
50 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 |
---|---|---|
@@ -1,52 +1,55 @@ | ||
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %} | ||
<va-accordion-item | ||
{% if serviceTaxonomy.fieldAlsoKnownAs %} | ||
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
{% endif %} | ||
class="va-accordion-item" | ||
data-label="{{ serviceTaxonomy.name }}" | ||
data-template="facilities/health_service" | ||
id="item-{{ serviceTaxonomy.name | hashReference: 60 }}" | ||
uswds="true" | ||
> | ||
<h3 slot="headline"> | ||
{{ serviceTaxonomy.name }} | ||
</h3> | ||
<div id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}"> | ||
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %} | ||
<p class="vads-u-margin-bottom--2"> | ||
Common conditions: {{ serviceTaxonomy.fieldCommonlyTreatedCondition }} | ||
</p> | ||
{% endif %} | ||
{% if section.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %} | ||
<description>{{ serviceTaxonomy.fieldTricareDescription | phoneLinks }}</description> | ||
{% elsif serviceTaxonomy.description.processed %} | ||
<description>{{ serviceTaxonomy.description.processed | phoneLinks }}</description> | ||
{% endif %} | ||
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %} | ||
<va-accordion-item | ||
{% if serviceTaxonomy.fieldAlsoKnownAs %} | ||
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
{% endif %} | ||
class="va-accordion-item" | ||
data-label="{{ serviceTaxonomy.name }}" | ||
data-template="facilities/health_service" | ||
id="item-{{ serviceTaxonomy.name | hashReference: 60 }}" | ||
uswds="true" | ||
> | ||
<h3 slot="headline"> | ||
{{ serviceTaxonomy.name }} | ||
</h3> | ||
<div id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}"> | ||
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %} | ||
<p class="vads-u-margin-bottom--2"> | ||
Common conditions: {{ serviceTaxonomy.fieldCommonlyTreatedCondition }} | ||
</p> | ||
{% endif %} | ||
|
||
{% if healthService.fieldLocalHealthCareService.length > 0 %} | ||
<h3>Available at these {{ regionOrOffice }} locations</h3> | ||
<ul class="usa-unstyled-list" role="list"> | ||
{% assign orderedHealthServices = healthService.fieldLocalHealthCareService | orderFieldLocalHealthCareServices %} | ||
{% for location in orderedHealthServices %} | ||
{% assign facility = location.entity.fieldFacilityLocation.entity %} | ||
{% if location.entity.status and facility != empty %} | ||
<li class="vads-u-margin-bottom--2"> | ||
<va-link | ||
href="{{ facility.entityUrl.path }}/#{{serviceTaxonomy.name | hashReference: 60}}" | ||
text="{{ facility.title }}" | ||
> | ||
</va-link> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
{% if section.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %} | ||
<description>{{ serviceTaxonomy.fieldTricareDescription | phoneLinks }}</description> | ||
{% elsif serviceTaxonomy.description.processed %} | ||
<description>{{ serviceTaxonomy.description.processed | phoneLinks }}</description> | ||
{% endif %} | ||
|
||
{% if healthService.fieldBody.processed %} | ||
<h3>Care we provide at {{ fieldOffice.entity.entityLabel }}</h3> | ||
<description>{{ healthService.fieldBody.processed | phoneLinks }}</description> | ||
{% endif %} | ||
</div> | ||
</va-accordion-item> | ||
{% if healthService.fieldLocalHealthCareService.length > 0 %} | ||
<h4 class="vads-u-font-size--h3">Available at these {{ regionOrOffice }} locations</h3> | ||
<ul class="usa-unstyled-list" role="list"> | ||
{% assign orderedHealthServices = healthService.fieldLocalHealthCareService | orderFieldLocalHealthCareServices %} | ||
|
||
{% for location in orderedHealthServices %} | ||
{% assign facility = location.entity.fieldFacilityLocation.entity %} | ||
|
||
{% if location.entity.status and facility != empty %} | ||
<li class="vads-u-margin-bottom--2"> | ||
<va-link | ||
href="{{ facility.entityUrl.path }}/#{{serviceTaxonomy.name | hashReference: 60}}" | ||
text="{{ facility.title }}" | ||
> | ||
</va-link> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
|
||
{% if healthService.fieldBody.processed %} | ||
<h4 class="vads-u-font-size--h3">Care we provide at {{ fieldOffice.entity.entityLabel }}</h3> | ||
<description>{{ healthService.fieldBody.processed | phoneLinks }}</description> | ||
{% endif %} | ||
</div> | ||
</va-accordion-item> |