Skip to content

Commit

Permalink
VACMS 13937 - VAMC and Vet Center Accordions with text to select a su…
Browse files Browse the repository at this point in the history
…bject (#2187)

* most accordions for health services changed
* added to health service listings
* space change to force update
  • Loading branch information
eselkin authored Jul 23, 2024
1 parent 2b88627 commit bc2947d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/site/includes/health_services_listing_services.liquid
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% assign servicesList = clinicalHealthServices | filterBy: "fieldServiceNameAndDescripti.entity.fieldServiceTypeOfCare", typeOfCare, false %}
{% assign servicesListOrderedByName = servicesList | sortObjectsBy: "fieldServiceNameAndDescripti.entity.name" %}

{% if servicesListOrderedByName.length > 0 %}
<section data-label="{{typeOfCare}}">
<h2>{{ typeOfCare }}</h2>
<p>Select a topic to learn more.</p>
<div class="service-accordion-output">
<va-accordion bordered uswds="true">
{% for service in servicesListOrderedByName %}
Expand Down
2 changes: 1 addition & 1 deletion src/site/includes/vet_centers/health_services.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<h2 id="other-services" class="vads-u-margin-top--0 vads-u-font-size--lg small-screen:vads-u-font-size--xl
vads-u-margin-bottom--2">Other services</h2>
{% endif %}
<p> Click on a service for more details. </p>
<p>Select a topic to learn more.</p>
{% include "src/site/includes/vet_centers/services.liquid" with services = servicesListOrdered %}
{% endif %}
5 changes: 2 additions & 3 deletions src/site/layouts/health_care_local_facility.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<h2 id="prepare-for-your-visit"
class="vads-u-margin-top--0 vads-u-font-size--lg small-screen:vads-u-font-size--xl vads-u-margin-bottom--2">
Prepare for your visit</h2>
<p>Click on a topic for more details.</p>
<p>Select a topic to learn more.</p>
<va-accordion section-heading="Prepare for your visit" bordered>
{% for accordionItem in fieldLocationServices %}
{% assign item = accordionItem.entity %}
Expand Down Expand Up @@ -180,8 +180,7 @@
{% if fieldLocalHealthCareService != empty and fieldLocalHealthCareService.length %}
<h2 id="health-care-offered-here"
class="vads-u-font-size--xl vads-u-margin-top--5">Health services offered here</h2>
<p>Click on a service for more details like location, contact, and appointment
information.</p>
<p>Select a topic to learn more.</p>
<section class="local-health-services" id="local-health-services" data-label="Health services">

{% assign localHealthServices = fieldLocalHealthCareService | sortObjectsBy: 'entity.fieldRegionalHealthService.entity.fieldServiceNameAndDescripti.entity.name' %}
Expand Down
2 changes: 1 addition & 1 deletion src/site/layouts/vet_center.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
{% if fieldPrepareForVisit.length > 0 %}
<h2 id="prepare-for-your-visit" class="vads-u-margin-top--0 vads-u-font-size--lg
small-screen:vads-u-font-size--xl vads-u-margin-bottom--2">Prepare for your visit</h2>
<p> Click on a topic for more details. </p>
<p>Select a topic to learn more.</p>
<div class="vads-u-margin-bottom--3">
<va-accordion bordered
id="prepare-for-your-visit-accordion-{{ entity.entity.fieldHeader }}"
Expand Down

0 comments on commit bc2947d

Please sign in to comment.