Skip to content

Commit 37ab5a0

Browse files
committed
sponsorship form: do not display program header if no benefits are part of the given year
1 parent ae08791 commit 37ab5a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/sponsors/sponsorship_benefits_form.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ <h4>{{ package.name|upper }}</h4>
7979
</div>
8080

8181
{% for field in form.benefits_programs %}
82+
{% if field.field.queryset|length > 0 %}
8283
{% with forloop.counter as sectionNum %}
8384
<div class="row separator">
8485
<h4>{{ field.label }}</h4>
@@ -151,6 +152,7 @@ <h4 class="benefit-title">{{ benefit.name }}</h4>
151152
{% endfor %}
152153

153154
{% endwith %}
155+
{% endif %}
154156
{% endfor %}
155157
</div>
156158

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy