Skip to content

Commit

Permalink
fix: Addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Oct 27, 2024
1 parent 3ca1a49 commit fbed27d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{% load humanize i18n %}
<div class="heroes">
{% if corporate_members.diamond %}
<h3>{% translate "Diamond Corporate Members" %} (${{ corporate_membership_amounts.diamond|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=corporate_membership_amounts.diamond|intcomma %}
Diamond Corporate Members (${{ amount }}+){% endblocktranslate %}</h3>
<div>
{% for obj in corporate_members.diamond %}
{% include "fundraising/includes/_hero_with_logo.html" %}
Expand All @@ -10,7 +11,8 @@ <h3>{% translate "Diamond Corporate Members" %} (${{ corporate_membership_amount
{% endif %}

{% if corporate_members.platinum %}
<h3>{% translate "Platinum Corporate Members" %} (${{ corporate_membership_amounts.platinum|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=corporate_membership_amounts.platinum|intcomma %}
Platinum Corporate Members (${{ amount }}+){% endblocktranslate %}</h3>
<div>
{% for obj in corporate_members.platinum %}
{% include "fundraising/includes/_hero_with_logo.html" %}
Expand All @@ -19,7 +21,8 @@ <h3>{% translate "Platinum Corporate Members" %} (${{ corporate_membership_amoun
{% endif %}

{% if corporate_members.gold %}
<h3>{% translate "Gold Corporate Members" %} (${{ corporate_membership_amounts.gold|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=corporate_membership_amounts.gold|intcomma %}
Gold Corporate Members (${{ amount }}+){% endblocktranslate %}</h3>
<div>
{% for obj in corporate_members.gold %}
{% include "fundraising/includes/_hero_with_logo.html" %}
Expand All @@ -28,7 +31,8 @@ <h3>{% translate "Gold Corporate Members" %} (${{ corporate_membership_amounts.g
{% endif %}

{% if corporate_members.silver %}
<h3>{% translate "Silver Corporate Members" %} (${{ corporate_membership_amounts.silver|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=corporate_membership_amounts.silver|intcomma %}
Silver Corporate Members (${{ amount }}+){% endblocktranslate %}</h3>
<div>
{% for obj in corporate_members.silver %}
{% include "fundraising/includes/_hero_with_logo.html" %}
Expand All @@ -37,7 +41,8 @@ <h3>{% translate "Silver Corporate Members" %} (${{ corporate_membership_amounts
{% endif %}

{% if corporate_members.bronze %}
<h3>{% translate "Bronze Corporate Members" %} (${{ corporate_membership_amounts.bronze|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=corporate_membership_amounts.bronze|intcomma %}
Bronze Corporate Members (${{ amount }}+){% endblocktranslate %}</h3>
<div>
{% for obj in corporate_members.bronze %}
{% include "fundraising/includes/_hero_with_logo.html" %}
Expand All @@ -55,7 +60,8 @@ <h3><a id="in-kind-donors" href="#in-kind-donors">{% translate "In-kind donors"
{% endwith %}
</div>

<h3>{% translate "Leaders" %} (${{ display_logo_amount|intcomma }}+)</h3>
<h3>{% blocktranslate trimmed with amount=display_logo_amount|intcomma %}
Leaders (${{ amount }}+){% endblocktranslate %}</h3>
<p>
{% blocktranslate trimmed with amount=display_logo_amount|intcomma %}
Leadership-level donors contribute ${{ amount }} or
Expand Down
4 changes: 2 additions & 2 deletions djangoproject/templates/fundraising/manage-donations.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h2>{% translate "Manage your participation in the fundraising campaigns" %}</h2
{% csrf_token %}
{% include 'fundraising/includes/_form.html' with form=hero_form %}
<p class="submit">
<input type="submit" class="cta" value="{% translate "Save &rarr;" %}">
<input type="submit" class="cta" value="{% translate "Save &rarr;" context "Save personal details about donation" %}">
</p>
{# Always include to avoid "Management form has been tampered with" if no recurring donations exist #}
{{ modify_donations_formset.management_form }}
Expand All @@ -48,7 +48,7 @@ <h2>{% translate "Modify your recurring donations" %}</h2>
</div>
{% endfor %}
<p class="submit">
<input type="submit" class="cta" value="{% translate "Save &rarr;" %}">
<input type="submit" class="cta" value="{% translate "Save &rarr;" context "Save personal details about donation" %}">
</p>
</form>
<hr />
Expand Down

0 comments on commit fbed27d

Please sign in to comment.