Skip to content

Commit

Permalink
Increase truncation to 60 chars to allow for different ids for accord…
Browse files Browse the repository at this point in the history
…ion elements
  • Loading branch information
Chris Kim authored and Chris Kim committed Sep 14, 2023
1 parent d9bbbd2 commit f7acfa6
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 243 deletions.
86 changes: 42 additions & 44 deletions src/site/facilities/facility_health_service.drupal.liquid
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>
2 changes: 1 addition & 1 deletion src/site/facilities/health_service.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class="va-accordion-item"
data-label="{{ serviceTaxonomy.name }}"
data-template="facilities/health_service"
id="{{serviceTaxonomy.name | hashReference: 30 }}"
id="{{serviceTaxonomy.name | hashReference: 60 }}"
>
<h3 slot="headline">
{{ serviceTaxonomy.name }}
Expand Down
2 changes: 1 addition & 1 deletion src/site/layouts/faq_multiple_q_a.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<va-accordion-item
class="va-accordion-item"
data-faq-entity-id="{{ fieldQA.entity.entityId }}"
id="{{ fieldQA.entity.title | hashReference: 30 }}"
id="{{ fieldQA.entity.title | hashReference: 60 }}"
>
<h3 slot="headline">
{{ fieldQA.entity.title }}
Expand Down
Loading

0 comments on commit f7acfa6

Please sign in to comment.