-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VA-17103] Add VBA Operating Status Component (#1926)
* VA-17103: add VBA OP Status More Info to query * VA-17103: Add VBA Expandable Alert partial
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% assign showVBAExpandableAlert = false %} | ||
|
||
{% if fieldOperatingStatusFacility == 'notice' %} | ||
{% assign showVBAExpandableAlert = true %} | ||
{% assign VBAExpandableAlertTrigger = 'Facility Notice' %} | ||
{% assign VBAExpandableAlertStatus = 'info' %} | ||
{% elsif fieldOperatingStatusFacility == 'limited' %} | ||
{% assign showVBAExpandableAlert = true %} | ||
{% assign VBAExpandableAlertTrigger = 'Limited services and hours' %} | ||
{% assign VBAExpandableAlertStatus = 'warning' %} | ||
{% elsif fieldOperatingStatusFacility == 'closed' %} | ||
{% assign showVBAExpandableAlert = true %} | ||
{% assign VBAExpandableAlertTrigger = 'Facility Closed' %} | ||
{% assign VBAExpandableAlertStatus = 'error' %} | ||
{% endif %} | ||
|
||
{% if showVBAExpandableAlert %} | ||
<va-alert-expandable | ||
data-template="components/vba_facilities/expandable-alert.drupal.liquid" | ||
class="vads-u-margin-top--0 vads-u-margin-bottom--0 vamc-facility-expandable-alert" | ||
status="{{ VBAExpandableAlertStatus }}" | ||
trigger="{{ VBAExpandableAlertTrigger }}" | ||
> | ||
<div> | ||
<p> | ||
{{ fieldOperatingStatusMoreInfo | newline_to_br }} | ||
</p> | ||
</div> | ||
</va-alert-expandable> | ||
{% endif %} |
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