Skip to content

Commit 88d42f7

Browse files
committed
sponsorship form: fix rendering of application form
When benefits are configured for packages that are to the right of packages that *do not* have a benefit, we should correctly render. This was effectively "gravity left" for the icons on the application.
1 parent 49a1e2a commit 88d42f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/sponsors/sponsorship_benefits_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h4 class="benefit-title">{{ benefit.name }}</h4>
9696
<!-- Packages information (as columns) --!>
9797
{% for package in form.fields.package.queryset %}
9898
<div class="col benefit-within-package {% if forloop.counter <= benefit.num_packages or not benefit.package_only %}package-{{ package.id }}-benefit {% if form.initial.package == package.id %}selected{% endif %}{% endif %}" data-package-reference="{{ package.id }}">
99-
{% if forloop.counter <= benefit.num_packages %}
99+
{% if benefit in package.benefits.all %}
100100
<img
101101
id="benefit-{{ benefit.id }}-package-{{ package.id }}"
102102
onclick="benefitUpdate({{ benefit.id }}, {{ package.id }})"

0 commit comments

Comments
 (0)