-
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.
[VA-14940] Add front End template skeleton for Facility content type …
…for VBA (#1762) * VA-14940: Update VBA Facility Query * VA-14940: Add VBA Facility to larger build processes * VA-14940: Update VBA Facility skeleton template * remove NearbyVetCenters widget after discussion and update link to find-locations * VA-14940: Update VBA Facility Query * VA-14940: Add VBA Facility to larger build processes * VA-14940: Update VBA Facility skeleton template * remove NearbyVetCenters widget after discussion and update link to find-locations * VA-14940: Remove unused VBA Facility query field * Vacms 15315 front end match style to sketch, testing (#1790) * working va-telephone components, cc benefits hotline, cc cannot find benefits * back to top and above footer * describe structure of processed better * Add breadcrumb data and update component * p tags with margin top 0 * uswds on alert, office hours, etc * social updates * vba links at top * testing for updates filters * fix mock data * claim status link ---- Co-authored-by: Max Antonucci <[email protected]> Co-authored-by: Nate Douglas <[email protected]> --------- Co-authored-by: Eli Selkin <[email protected]> Co-authored-by: Eli Selkin <[email protected]>
- Loading branch information
1 parent
3e9007b
commit c1f7cd4
Showing
15 changed files
with
665 additions
and
25 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
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,14 +1,33 @@ | ||
{% comment %} | ||
This is used for Region Landing page and Contact us page | ||
Also used for VBA with parameter | ||
{% endcomment %} | ||
<div data-template="facilities/main_buttons"> | ||
<div> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/make-an-appointment">Make an appointment</a> | ||
</div> | ||
<div class="vads-u-margin-y--2"> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/health-services">View all health services</a> | ||
</div> | ||
<div> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/register-for-care">Register for care</a> | ||
</div> | ||
{% if buttonType == 'vba' %} | ||
<div> | ||
<a class="vads-c-action-link--blue" href="https://va.my.site.com/VAVERA/s/">Make an appointment</a> | ||
</div> | ||
{% else %} | ||
<div> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/make-an-appointment">Make an appointment</a> | ||
</div> | ||
{% endif %} | ||
{% if buttonType == 'vba' %} | ||
<div class="vads-u-margin-y--2"> | ||
<a class="vads-c-action-link--blue" href="https://ask.va.gov">Ask a benefit question</a> | ||
</div> | ||
{% else %} | ||
<div class="vads-u-margin-y--2"> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/health-services">View all health services</a> | ||
</div> | ||
{% endif %} | ||
{% if buttonType == 'vba' %} | ||
<div> | ||
<a class="vads-c-action-link--blue" href="/claim-or-appeal-status">Check a claim status</a> | ||
</div> | ||
{% else %} | ||
<div> | ||
<a class="vads-c-action-link--blue" href="/{{ path }}/register-for-care">Register for care</a> | ||
</div> | ||
{% endif %} | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<section data-template="facilities/facility_social_links" class="feature vads-u-background-color--gray-lightest vads-u-margin-top--4 small-screen:vads-u-margin-top--6 vads-u-padding-x--3 vads-u-padding-y--2p5"> | ||
<h2 class="vads-u-margin-bottom--2">Get updates from {{ regionNickname }}</h2> | ||
<div class="va-c-list-link-teasers usa-grid usa-grid-full"> | ||
|
||
<div class="usa-width-one-half social-links"> | ||
{% if fieldNews != empty %} | ||
<div class="social-links-email vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" | ||
href="{{fieldNews.uri}}"> | ||
<i class="fas fa-envelope vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldNews.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% if fieldFacebook != empty %} | ||
<div class="social-links social-links-facebook vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" href="{{ fieldFacebook.uri }}"> | ||
<i class="fab fa-facebook-square vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldFacebook.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
{% if fieldTwitter != empty || fieldFlickr != empty || fieldInstagram != empty %} | ||
<div class="usa-width-one-half social-links"> | ||
<div class=""> | ||
{% if fieldTwitter != empty %} | ||
<div class="social-links social-links-twitter vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" href="{{ fieldTwitter.uri }}"> | ||
<i class="fab fa-twitter vads-u-text-decoration--none vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldTwitter.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
{% if fieldFlickr != empty %} | ||
<div class="social-links social-links-flickr vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" href="{{ fieldFlickr.uri }}"> | ||
<i class="fab fa-flickr vads-u-text-decoration--none vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldFlickr.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
|
||
{% if fieldInstagram != empty %} | ||
<div class="social-links social-links-instagram vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" href="{{ fieldInstagram.uri }}"> | ||
<i class="fab fa-instagram vads-u-text-decoration--none vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldInstagram.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
|
||
{% if fieldYoutube != empty %} | ||
<div class="social-links social-links-youtube vads-u-margin-bottom--2"> | ||
<a class="vads-u-display--flex vads-u-align-items--baseline vads-u-text-decoration--none" rel="noreferrer" href="{{ fieldYoutube.uri }}"> | ||
<i class="fab fa-youtube vads-u-text-decoration--none vads-u-margin-right--1"></i> | ||
<span class="vads-u-text-decoration--underline">{{ fieldYoutube.title }}</span> | ||
</a> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endif %} | ||
</div> | ||
</section> |
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
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<div class="feature featured-content-list-item vads-u-flex--fill vads-u-padding-y--1p5 vads-u-padding-x--1p5 vads-u-margin-bottom--0 medium-screen:vads-u-margin-bottom--2"> | ||
<script>console.log({{entity.fieldCta|json}})</script> | ||
|
||
{% if entity.fieldSectionHeader != empty %} | ||
<h3 class="force-small-header vads-u-margin-bottom--2">{{ entity.fieldSectionHeader }}</h3> | ||
<hr class="featured-content-hr vads-u-margin-y--1p5 vads-u-border-color--primary"> | ||
{% endif %} | ||
{% if entity.fieldDescription %} | ||
<div id="featured-content-description{{ entity.fieldSectionHeader }}}}"> | ||
{{ entity.fieldDescription.processed | drupalToVaPath | phoneLinks }} | ||
</div> | ||
{% endif %} | ||
{% if entity.fieldCta.entity.fieldButtonLink %} | ||
{% if entity.fieldCta.entity.fieldButtonLink.url %} | ||
<div class="vads-u-padding-top--1"> | ||
<p> | ||
<a class="vads-u-display--block" href="{{ entity.fieldCta.entity.fieldButtonLink.url }}" > | ||
<span> {{ entity.fieldCta.entity.fieldButtonLabel }} <i class="fa fa-chevron-right vads-facility-hub-cta-arrow" aria-hidden="true"></i></span> | ||
</a> | ||
</p> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</div> |
24 changes: 24 additions & 0 deletions
24
src/site/layouts/tests/vba/template/fixtures/vba_facility_data_benefits_hotline.json
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"fetched": { | ||
"fieldPhoneExtension": [ | ||
{ | ||
"value": "4023022840" | ||
} | ||
], | ||
"fieldPhoneLabel": [ | ||
{ | ||
"value": "VA benefits hotline" | ||
} | ||
], | ||
"fieldPhoneNumber": [ | ||
{ | ||
"value": "800-827-1000" | ||
} | ||
], | ||
"fieldPhoneNumberType": [ | ||
{ | ||
"value": "tel" | ||
} | ||
] | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
src/site/layouts/tests/vba/template/fixtures/vba_facility_data_cant_find_benefits.json
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"fetched": { | ||
"fieldCta": [ | ||
{ | ||
"entity": { | ||
"targetId": "139797", | ||
"targetRevisionId": "1104167", | ||
"entityType": "paragraph", | ||
"entityBundle": "button", | ||
"pid": "139797", | ||
"label": "VBA -- benefit office content > Content > Call to Action", | ||
"status": true, | ||
"langcode": "en", | ||
"fieldButtonLabel": [ | ||
{ | ||
"value": "Find a VA benefits location" | ||
} | ||
], | ||
"fieldButtonLink": [ | ||
{ | ||
"uri": "https://www.va.gov/find-locations/?facilityType=benefits", | ||
"title": "", | ||
"options": { | ||
"href": "https://www.va.gov/find-locations/?facilityType=benefits", | ||
"dataEntityType": "", | ||
"dataEntityUuid": "", | ||
"dataEntitySubstitution": "" | ||
}, | ||
"url": { | ||
"path": "https://www.va.gov/find-locations/?facilityType=benefits" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"fieldDescription": [ | ||
{ | ||
"value": "<p>Call our VA benefits hotline at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a> (<a aria-label=\"TTY. 7 1 1.\" href=\"tel:711\">TTY: 711</a>). We’re here 8:00 a.m. to 9:00 p.m. ET, Monday through Friday.</p>\r\n\r\n<p> </p>\r\n", | ||
"format": "rich_text_limited", | ||
"processed": "<p>Call our VA benefits hotline at <a aria-label=\"8 0 0. 8 2 7. 1 0 0 0.\" href=\"tel:+18008271000\">800-827-1000</a> (<a aria-label=\"TTY. 7 1 1.\" href=\"tel:711\">TTY: 711</a>). We’re here 8:00 a.m. to 9:00 p.m. ET, Monday through Friday.</p>\n<p> </p>\n" | ||
} | ||
], | ||
"fieldSectionHeader": [ | ||
{ | ||
"value": "Can't find the service you're looking for?" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.