From e1a2e59867660c309c0dc0e9e0989b0edc88bbab Mon Sep 17 00:00:00 2001
From: "Ryan P Letulle (CGI)" <92539208+ryanletulle@users.noreply.github.com>
Date: Mon, 12 Jun 2023 16:12:20 -0500
Subject: [PATCH] Update Redel Twig
---
.../templates/node--re-delegation.html.twig | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/docroot/themes/custom/epa_intranet/templates/node--re-delegation.html.twig b/docroot/themes/custom/epa_intranet/templates/node--re-delegation.html.twig
index 6dccf3c69..c4bf54c12 100644
--- a/docroot/themes/custom/epa_intranet/templates/node--re-delegation.html.twig
+++ b/docroot/themes/custom/epa_intranet/templates/node--re-delegation.html.twig
@@ -126,19 +126,21 @@
{{ content.field_agency_delegation_link }}
{{ content.field_transmittal_notice }}
- {% if content.field_redelegation_authority is not empty %}
+ {% if content.field_redelegation_authority|render|trim is not empty %}
- {{ content.field_redelegation_authority }}
{% endif %}
- {% if content.field_to_whom_delegated is not empty %}
+ {% if content.field_to_whom_delegated|render|trim is not empty %}
- {{ content.field_to_whom_delegated }}
{% endif %}
- {% if content.field_limitation is not empty %}
+ {% if content.field_limitation|render|trim is not empty %}
-
{{ content.field_limitation }}
{{ content.field_limitations }}
{% endif %}
- {% if content.field_further_redelegation is not 'May not be redelegated.' %}
+ {% if 'May not be redelegated.' in content.field_further_redelegation|render|render %}
+ - {{ content.field_further_redelegation }}
+ {% else %}
- {{ content.field_further_redelegation }}
- {{ content.field_redelegation_language }}
@@ -146,10 +148,8 @@
- {{ content.field_link_to_further_redelegati }}
- {% else %}
- - content.field_further_redelegation
{% endif %}
- {% if content.field_references is not empty %}
+ {% if content.field_references|render|trim is not empty %}
Authority Citations
{% if content.field_references %}
{{ content.field_references }}
@@ -159,12 +159,12 @@
{% endif %}
- {% if content.field_related_resources is not empty %}
+ {% if content.field_related_resources|render|trim is not empty %}
Related Resources
{{ content.field_related_resources }}
{% endif %}
- {% if content.field_signed_memo is not empty %}
+ {% if content.field_signed_memo|render|trim is not empty %}
Signed Memo
{{ content.field_signed_memo }}
{% endif %}