From 98d6951cd4ce74b837d8d3e3435e661cba9a7c27 Mon Sep 17 00:00:00 2001 From: "Ryan P Letulle (CGI)" <92539208+ryanletulle@users.noreply.github.com> Date: Thu, 22 Jun 2023 15:26:55 -0500 Subject: [PATCH] Update Delegation Twig template. --- .../node--policy-delegation.html.twig | 64 +++++++++++++++---- 1 file changed, 50 insertions(+), 14 deletions(-) diff --git a/docroot/themes/custom/epa_intranet/templates/node--policy-delegation.html.twig b/docroot/themes/custom/epa_intranet/templates/node--policy-delegation.html.twig index 6a53e5e90..dc1418f72 100644 --- a/docroot/themes/custom/epa_intranet/templates/node--policy-delegation.html.twig +++ b/docroot/themes/custom/epa_intranet/templates/node--policy-delegation.html.twig @@ -118,25 +118,61 @@

Delegation's Original Effective/Approval Date: {{ content.field_effective_date.0 }}

- - {% else %} - - + {% else %} + - {{ content|without('field_rescind_this_delegation','field_rescission_date', 'field_rescission_notes', 'field_governing_authorities', 'field_keywords', 'field_signed_memo') }} -{% if field.governing_authorities is not empty %} - {{ content.field_governing_authorities }} - {% else %} -

References: None

+ {# content|without('field_rescind_this_delegation','field_rescission_date', 'field_rescission_notes', 'field_governing_authorities', 'field_keywords', 'field_signed_memo') #} + {{ content.field_prior_identifier }} + {{ content.field_chapter }} + {{ content.field_effective_date }} + {{ content.field_admin_update_date }} + {{ content.field_link_to_delegation_file }} +
    + {% if content.field_autho|render|trim is not empty %} +
  1. {{ content.field_autho }}
  2. + {% endif %} + {% if content.field_to_whom_delegated|render|trim is not empty %} +
  3. {{ content.field_to_whom_delegated }}
  4. + {% endif %} + {% if 'This delegation has the following limitations' in content.field_limitations|render|render %} +
  5. + {{ content.field_limitations }} + {{ content.field_limitation }} +
  6. + {% endif %} + {% if 'May NOT be redelegated.' in content.field_redelegation|render|render %} +
  7. {{ content.field_redelegation }}
  8. + {% else %} +
  9. {{ content.field_redelegation }} +
      + {% if content.field_redelegation_language|render|trim is not empty %} +
    • {{ content.field_redelegation_language }}
    • + {% endif %} + {% if content.field_re_redelegation_authority|render|trim is not empty %} +
    • {{ content.field_re_redelegation_authority }}
    • + {% endif %} +
    +
  10. + {% endif %} +
  11. Authority Citations
    + {% if content.field_references|render|trim is not empty %} + {{ content.field_references }} + {% else %} +

    None.

    + {% endif %} +
  12. +
+ {% if content.field_signed_memo|render|trim is not empty %} +
{{ content.field_signed_memo }}
+ {% endif %} + {% if content.field_keywords|render|trim is not empty %} + {{ content.field_keywords }} + {% endif %} + {% endif %} - {{ content.field_signed_memo }} - {{ content.field_keywords }} - - {% endif %} -