-
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.
Increase truncation to 60 chars to allow for different ids for accord…
…ion elements
- Loading branch information
Chris Kim
authored and
Chris Kim
committed
Sep 14, 2023
1 parent
d9bbbd2
commit f7acfa6
Showing
8 changed files
with
236 additions
and
243 deletions.
There are no files selected for viewing
86 changes: 42 additions & 44 deletions
86
src/site/facilities/facility_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,48 +1,46 @@ | ||
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %} | ||
<va-accordion-item | ||
{% if serviceTaxonomy.fieldAlsoKnownAs %} | ||
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
{% endif %} | ||
class="facilities_health_service va-accordion-item" | ||
data-label="{{ serviceTaxonomy.name }}" | ||
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
data-template="facilities/facilities_health_service" | ||
id="{{serviceTaxonomy.name | hashReference: 30 }}" | ||
> | ||
<h3 slot="headline"> | ||
{{ serviceTaxonomy.name }} | ||
</h3> | ||
<div | ||
id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}" | ||
> | ||
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %} | ||
<div class="vads-u-margin-bottom--2"> | ||
<span class="vads-u-font-style--italic">Common conditions: </span>{{ serviceTaxonomy.fieldCommonlyTreatedCondition }} | ||
</div> | ||
{% endif %} | ||
{% assign serviceTaxonomy = healthService.fieldServiceNameAndDescripti.entity %} | ||
<va-accordion-item | ||
{% if serviceTaxonomy.fieldAlsoKnownAs %} | ||
subheader="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
{% endif %} | ||
class="facilities_health_service va-accordion-item" | ||
data-label="{{ serviceTaxonomy.name }}" | ||
data-childlabel="{{ serviceTaxonomy.fieldAlsoKnownAs }}" | ||
data-template="facilities/facilities_health_service" | ||
id="{{serviceTaxonomy.name | hashReference: 60 }}"> | ||
<h3 slot="headline"> | ||
{{ serviceTaxonomy.name }} | ||
</h3> | ||
<div id="{{ serviceTaxonomy.entityBundle }}-{{ serviceTaxonomy.entityId }}"> | ||
{% if serviceTaxonomy.fieldCommonlyTreatedCondition %} | ||
<div class="vads-u-margin-bottom--2"> | ||
<span class="vads-u-font-style--italic">Common conditions: | ||
</span> | ||
{{ serviceTaxonomy.fieldCommonlyTreatedCondition }} | ||
</div> | ||
{% endif %} | ||
|
||
{% if serviceSection.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %} | ||
<div>{{ serviceTaxonomy.fieldTricareDescription }}</div> | ||
{% elsif serviceTaxonomy.description.processed %} | ||
<div>{{ serviceTaxonomy.description.processed }}</div> | ||
{% endif %} | ||
{% if serviceSection.name == "Lovell - TRICARE" and serviceTaxonomy.fieldTricareDescription %} | ||
<div>{{ serviceTaxonomy.fieldTricareDescription }}</div> | ||
{% elsif serviceTaxonomy.description.processed %} | ||
<div>{{ serviceTaxonomy.description.processed }}</div> | ||
{% endif %} | ||
|
||
{% if locations.0.entity %} | ||
{% include "src/site/facilities/health_care_local_health_service.drupal.liquid" %} | ||
{% else %} | ||
<div>{{ localServiceDescription }}</div> | ||
{% endif %} | ||
{% if locations.0.entity %} | ||
{% include "src/site/facilities/health_care_local_health_service.drupal.liquid" %} | ||
{% else %} | ||
<div>{{ localServiceDescription }}</div> | ||
{% endif %} | ||
|
||
{% if fieldFacilityLocatorApiId contains "vha_" %} | ||
<div | ||
data-widget-type="facility-appointment-wait-times-widget" | ||
data-facility="{{ fieldFacilityLocatorApiId | widgetFacilityDetail | escape }}" | ||
data-service="{{ serviceTaxonomy | healthServiceApiId | escape }}" | ||
></div> | ||
{% endif %} | ||
{% if fieldFacilityLocatorApiId contains "vha_" %} | ||
<div | ||
data-widget-type="facility-appointment-wait-times-widget" | ||
data-facility="{{ fieldFacilityLocatorApiId | widgetFacilityDetail | escape }}" | ||
data-service="{{ serviceTaxonomy | healthServiceApiId | escape }}"></div> | ||
{% endif %} | ||
|
||
{% if healthService.fieldBody.processed %} | ||
<div>{{ healthService.fieldBody.processed | replace: 'h3', 'h4' }}</div> | ||
{% endif %} | ||
</div> | ||
</va-accordion-item> | ||
{% if healthService.fieldBody.processed %} | ||
<div>{{ healthService.fieldBody.processed | replace: 'h3', 'h4' }}</div> | ||
{% endif %} | ||
</div> | ||
</va-accordion-item> |
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.