Skip to content

Commit

Permalink
sponsorship form: fix rendering of application form
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ewdurbin committed Mar 18, 2023
1 parent 49a1e2a commit 88d42f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/sponsors/sponsorship_benefits_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h4 class="benefit-title">{{ benefit.name }}</h4>
<!-- Packages information (as columns) --!>
{% for package in form.fields.package.queryset %}
<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 }}">
{% if forloop.counter <= benefit.num_packages %}
{% if benefit in package.benefits.all %}
<img
id="benefit-{{ benefit.id }}-package-{{ package.id }}"
onclick="benefitUpdate({{ benefit.id }}, {{ package.id }})"
Expand Down

0 comments on commit 88d42f7

Please sign in to comment.