{% extends 'basepledge.html' %} {% load humanize %} {% block title %}Pledge Cancelled{% endblock %} {% block extra_css %} {% endblock %} {% block doccontent %} {% if error %}

Error

{{error}} {% else %} {% if transaction %}

Pledge Canceled

You have asked to cancel your pledge of ${{ transaction.amount|floatformat:2|intcomma }} to {{ work.title }}.
{% csrf_token %}
or return to {{ work.title }} without canceling your pledge.
{% comment %} "Yes" should trigger whatever functionality we need to complete cancellation -- may differ depending on whether we've hit the back button from Amazon or the cancel-my-pledge link in pledge_modify. Similarly. "Whoops" should use {{ try_again_url }} if we're coming out of Amazon, and should be a link back to the work page otherwise. Not sure whether these want to be input buttons for forms, links, javascript, or what -- make them be whichever they need; I have applicable styling in any case. Will retrofit that. This suggests we may need an if condition to determine which route we've come from since they may have different context (e.g. try_again_url I suspect only applies if we've come by way of the payment processor). {% endcomment %} {% else %}
No relevant transaction to cancel for this campaign.
{% endif %} {% endif %} {% endblock %}