Skip to content

Commit

Permalink
Merge pull request #845 from USEPA/IN-1762
Browse files Browse the repository at this point in the history
Update Delegation Twig template.
  • Loading branch information
ryanletulle authored Jun 22, 2023
2 parents 904dfb7 + 98d6951 commit 6cb0214
Showing 1 changed file with 50 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,25 +118,61 @@
<p class="usa-alert__text"><strong>Delegation's Original Effective/Approval Date:</strong> {{ content.field_effective_date.0 }}</p>
</div>
</div>

{% else %}

<div{{ content_attributes.addClass('node__content') }}>

{% else %}

<div{{ content_attributes.addClass('node__content') }}>

{{ 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 %}
<p><strong>References:</strong> None</p>
{# 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 }}
<ol>
{% if content.field_autho|render|trim is not empty %}
<li>{{ content.field_autho }}</li>
{% endif %}
{% if content.field_to_whom_delegated|render|trim is not empty %}
<li>{{ content.field_to_whom_delegated }}</li>
{% endif %}
{% if 'This delegation has the following limitations' in content.field_limitations|render|render %}
<li>
{{ content.field_limitations }}
{{ content.field_limitation }}
</li>
{% endif %}
{% if 'May NOT be redelegated.' in content.field_redelegation|render|render %}
<li>{{ content.field_redelegation }}</li>
{% else %}
<li>{{ content.field_redelegation }}
<ul>
{% if content.field_redelegation_language|render|trim is not empty %}
<li>{{ content.field_redelegation_language }}</li>
{% endif %}
{% if content.field_re_redelegation_authority|render|trim is not empty %}
<li>{{ content.field_re_redelegation_authority }}</li>
{% endif %}
</ul>
</li>
{% endif %}
<li><div class="field__label">Authority Citations</div>
{% if content.field_references|render|trim is not empty %}
{{ content.field_references }}
{% else %}
<p>None.</p>
{% endif %}
</li>
</ol>
{% if content.field_signed_memo|render|trim is not empty %}
<div class="field__item">{{ content.field_signed_memo }}</div>
{% endif %}
{% if content.field_keywords|render|trim is not empty %}
{{ content.field_keywords }}
{% endif %}
</div>
{% endif %}
{{ content.field_signed_memo }}
{{ content.field_keywords }}
</div>

{% endif %}

</article>

0 comments on commit 6cb0214

Please sign in to comment.