{% extends 'basepledge.html' %} {% load url from future %} {% load humanize %} {% block title %}Pledge{% endblock %} {% block extra_extra_head %} {% endblock %} {% block news %} {% endblock %} {% block doccontent %}
{{ work.title }}

{{ work.title }}

{{ work.authors_short }}

{{ work.publication_date_year }}

{{ work.percent_of_goal }}% of goal
${{ work.last_campaign.current_total|floatformat:0|intcomma }} pledged
${{ work.last_campaign.target|floatformat:0|intcomma }} goal
{% if work.last_campaign.supporters_count == 1 %} 1 ungluer {% else %} {{ work.last_campaign.supporters_count }} ungluers {% endif %}
{{ work.last_campaign.countdown }} to go
{% if faqmenu == 'modify' %}

You've already pledged to this campaign:

Amount: ${{transaction.amount|floatformat:2|intcomma}}.
Your premium: {% if transaction.premium %}{{ transaction.premium.description }}{% else %}You did not request a premium for this campaign.{% endif %}

You can modify your pledge below.
{% endif %} {% ifnotequal work.last_campaign.status 'ACTIVE' %}

Campaign NOT ACTIVE

This pledge form is not functional because the campaign is NOT ACTIVE.


{% endifnotequal %} {% comment %} Even there is a CampaignPledgeForm in frontend/forms.py , the "widget" for premium_id is implemented in HTML here for now. {% endcomment %}
{% csrf_token %} {{ form.non_field_errors }}
{{ form.preapproval_amount.label_tag }}: {{ form.preapproval_amount.errors }}${{ form.preapproval_amount }}
{% if premiums|length > 1 %}
Choose your premium:
{% else %}
{% comment %} If the RH hasn't added any premiums, there's no point in displaying the "no premium" option, but we do need to check it off so the form will validate. {% endcomment %} {% endif %}
Depending on your pledge amount, you'll also get these acknowledgements.
Any amount
The unglued ebook will be delivered to your inbox.
$25+
You'll be listed on the acknowledgements page of the unglued ebook. {{ form.ack_name.label_tag }} {{ form.ack_name.errors }}{{ form.ack_name }}
$100+
Your acknowledgement can include a dedication (140 characters max). {{ form.ack_dedication.label_tag }} {{ form.ack_dedication.errors }}{{ form.ack_dedication }}
{{ form.anonymous.label_tag }} {{ form.anonymous.errors }}{{ form.anonymous }}
{% comment %} When the pledge amount and premium are in an inconsistent state, the real button is disabled and (via css) hidden; instead we display this fake button with a helpful message. It's a button so we can reuse all the existing CSS for buttons, so that it looks like the real button has just changed in appearance. It's hidden and the other one un-disabled and un-hidden when the pledge & premium return to a correct state. People without javascript enabled will miss out on the front-end corrections but form validation will catch it. {% endcomment %}
{% if faqmenu == 'modify' %}We hope you won't, but of course you're also free to cancel your pledge.{% endif %}
{% endblock %}