Skip to content

Commit

Permalink
Make extra donation more obviously read-only
Browse files Browse the repository at this point in the history
Requested via Slack.
  • Loading branch information
kitsuta committed Sep 12, 2024
1 parent 4216dae commit 27c6e48
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 31 deletions.
2 changes: 1 addition & 1 deletion magprime/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class BadgeExtras:
], widget=NumberInputWithChoices(choices=c.SUPERSTAR_DONATION_OPTS))

def extra_donation_label(self):
return Markup("Superstar Donation ({})".format(popup_link("../static_views/givingExtra.html", "Learn more")))
return Markup("Superstar Donation ({})".format(popup_link("https://super.magfest.org/superstars", "Learn more")))

@MagForm.form_mixin
class AdminBadgeExtras:
Expand Down
69 changes: 39 additions & 30 deletions magprime/templates/forms/attendee/badge_extras.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,46 @@
{% extends 'uber/templates/forms/attendee/badge_extras.html' %}

{% block donation %}
<div class="row g-sm-3">
{% if not admin_area and c.BEFORE_SUPERSTAR_DEADLINE %}
{% set show_full_desc = not admin_area and (not receipt or upgrade_modal) %}

{% if show_full_desc and c.BEFORE_SUPERSTAR_DEADLINE %}
<div class="row g-sm-3">
<div class="col-12">
<a href="https://super.magfest.org/superstars" target="_blank">
<img src="../static/images/superstar.png" width="100%" alt="Become a Superstar" />
</a>
</div>
</div>
{% endif %}
{% if show_full_desc %}
<div class="row g-sm-3">
<div class="col-12">{{ form_macros.form_input(badge_extras.extra_donation, id=id_upgrade_prepend ~ "extra_donation") }}</div>
</div>
<div class="row g-sm-3">
<div class="col-12">
<a href="https://super.magfest.org/superstars" target="_blank">
<img src="../static/images/superstar.png" width="100%" alt="Become a Superstar" />
</a>
</div>
{% endif %}
<div class="col-12{% if receipt and not upgrade_modal and not admin_area %} col-sm-10{% endif %}">{{ form_macros.form_input(badge_extras.extra_donation, id=id_upgrade_prepend ~ "extra_donation") }}</div>
{% if receipt and not upgrade_modal and not admin_area %}
<div class="col-12 col-sm-2">
<div class="form-text">&nbsp;</div>{{ macros.upgrade_button('extra-donation', extra_classes="") }}</div>
{% endif %}
{% if not admin_area %}
<div class="col-12 mt-0">
{% if c.BEFORE_SUPERSTAR_DEADLINE %}
<p>Donate to MAGFest and <a href="https://super.magfest.org/superstars" target="_blank">become a Superstar</a>!
With a donation of $30 or more, you'll be listed as a Superstar donor on our website, have your name and
pet appear on the at-event Jumbotron, gain an exclusive Superstar role on our Discord server, and more.</p>

<p>Feeling even more generous or want additional info? Check out our expanded tiers and benefits
(including sponsoring your own Graffiti Banner) on our Superstar page above.</p>
{% else %}
<p>The deadline for <a href="https://super.magfest.org/superstars" target="_blank">becoming a Superstar</a>
has passed, but we always appreciate any extra donations!</p>
{% endif %}
{% if c.BEFORE_SUPERSTAR_DEADLINE %}
<p>Donate to MAGFest and <a href="https://super.magfest.org/superstars" target="_blank">become a Superstar</a>!
With a donation of $30 or more, you'll be listed as a Superstar donor on our website, have your name and
pet appear on the at-event Jumbotron, gain an exclusive Superstar role on our Discord server, and more.</p>

<p>Feeling even more generous or want additional info? Check out our expanded tiers and benefits
(including sponsoring your own Graffiti Banner) on our Superstar page above.</p>
{% else %}
<p>The deadline for <a href="https://super.magfest.org/superstars" target="_blank">becoming a Superstar</a>
has passed, but we always appreciate any extra donations!</p>
{% endif %}

<p><strong>Donations are not merch packages and do not come with merchandise.</strong>
MAGFest, Inc. is a 501(c)(3) charitable organization, so your donation is tax-deductible.
For more information, please contact {{ "[email protected]"|email_to_link }}.</p>
<p><strong>Donations are not merch packages and do not come with merchandise.</strong>
MAGFest, Inc. is a 501(c)(3) charitable organization, so your donation is tax-deductible.
For more information, please contact {{ "[email protected]"|email_to_link }}.</p>
</div>
</div>
{% else %}
<div class="row g-sm-3">
<div class="col-12 col-sm-6 mb-3">
<div class="form-text">{{ badge_extras.extra_donation.label.text }}</div>
<div class="form-control-plaintext h5">{{ attendee.extra_donation|format_currency }} {{ macros.upgrade_button('extra-donation') }}</div>
</div>
{% endif %}
</div>
</div>
{% endif %}
{% endblock %}

0 comments on commit 27c6e48

Please sign in to comment.