Skip to content

Commit

Permalink
VA-14670: Debug centralized content expander text template
Browse files Browse the repository at this point in the history
  • Loading branch information
maxx1128 committed Aug 8, 2023
1 parent 204899f commit 54a5fc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/site/paragraphs/alert.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{% elsif entity.fieldAlertHeading != empty and entity.fieldVaParagraphs != empty %}
<va-alert date-template="paragraphs/alert" data-entity-id="{{ entity.entityId }}" status="{{ alertType }}" class="vads-u-margin-top--3" role="alert">
<h2 slot="headline" class="vads-u-font-size--h3">
{{ entity.fieldAlertHeading }}
{{ entity.fieldAlertHeading.value }}
</h2>

{% for paragraph in entity.fieldVaParagraphs %}
Expand All @@ -44,4 +44,3 @@
{% endfor %}
</va-alert>
{% endif %}

10 changes: 8 additions & 2 deletions src/site/paragraphs/expandable_text.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ Example data:
{% if entity.fieldTextExpander %}
<div data-template="paragraphs/expandable_text" data-entity-id="{{ entity.entityId }}"
class="form-expanding-group borderless-alert additional-info-container">
<div class="additional-info-title">{{ entity.fieldTextExpander }}</div>
<div class="additional-info-title">{{ entity.fieldTextExpander.value }}</div>

{% if entity.fieldWysiwyg %}
<div class="additional-info-content usa-alert-text" hidden>{{ entity.fieldWysiwyg.processed }}</div>
<div class="additional-info-content usa-alert-text" hidden>
{% if entity.fieldWysiwyg.0.processed %}
{{ entity.fieldWysiwyg.0.processed }}
{% elsif entity.fieldWysiwyg.processed %}
{{ entity.fieldWysiwyg.processed }}
{% endif %}
</div>
{% endif %}
</div>
{% endif %}

0 comments on commit 54a5fc0

Please sign in to comment.