annotate gpp/templates/donations/index.html @ 340:2541d27ca056

Fix #153. Update verbiage on the donations thanks template to meet Paypal guidelines for making it a auto-return page.
author Brian Neal <bgneal@gmail.com>
date Sun, 27 Feb 2011 00:28:20 +0000
parents daa2916f5b34
children 3c48a555298d
rev   line source
bgneal@35 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
bgneal@35 3 {% block title %}Donations{% endblock %}
bgneal@35 4 {% block content %}
bgneal@35 5 <h2>Donations</h2>
bgneal@35 6 <p>
bgneal@35 7 SurfGuitar101.com is a member supported website. We don't display ads or have other forms of
bgneal@35 8 sponsorship. If you enjoy this website, the forums, chatting in IRC, the podcasts, surf music news,
bgneal@35 9 the show calendar, and everything else, please consider making a small donation to help cover server
bgneal@35 10 and hosting costs.
bgneal@35 11 </p>
bgneal@35 12 <p>
bgneal@35 13 We are currently using Paypal to receive donations. You don't have to be a Paypal member to donate;
bgneal@35 14 major credit cards are also accepted. If you really don't do Paypal, please
bgneal@310 15 <a href="{% url 'contact-form' %}">contact me</a> and we can work something else out.
bgneal@35 16 </p>
bgneal@35 17 <p>Thank you for donating to SurfGuitar101.com!</p>
bgneal@66 18 <div class="span-9 append-1">
bgneal@35 19 <h3>Statistics for {% now "F, Y" %}:</h3>
bgneal@35 20 <table>
bgneal@35 21 <tr><th>Goal:</th><td>${{ goal }}</td></tr>
bgneal@35 22 <tr><th>Gross:</th><td>${{ gross }}</td></tr>
bgneal@35 23 <tr><th>Net:</th><td>${{ net }}</td></tr>
bgneal@35 24 <tr><th>Left to Go:</th><td>${{ left }}</td></tr>
bgneal@35 25 </table>
bgneal@66 26 </div>
bgneal@66 27 <div class="span-9 last">
bgneal@66 28 <h3>Donors for {% now "F, Y" %}:</h3>
bgneal@35 29 {% if donations %}
bgneal@67 30 <ol>
bgneal@35 31 {% for donation in donations %}
bgneal@35 32 <li>
bgneal@35 33 {% if donation.is_anonymous %}
bgneal@35 34 {{ anonymous }}
bgneal@35 35 {% else %}
bgneal@35 36 {% if donation.user %}
bgneal@310 37 <a href="{% url 'bio-view_profile' donation.user.username %}">{{ donation.user.username }}</a>
bgneal@35 38 {% else %}
bgneal@35 39 {{ donation.donor }}
bgneal@35 40 {% endif %}
bgneal@35 41 {% endif %}
bgneal@35 42 </li>
bgneal@35 43 {% endfor %}
bgneal@67 44 </ol>
bgneal@66 45 {% else %}
bgneal@66 46 <p>We haven't received any donations this month. You could be the first!</p>
bgneal@35 47 {% endif %}
bgneal@66 48 </div>
bgneal@35 49
bgneal@66 50 <div class="span-19 last">
bgneal@35 51 <form action="{{ form_action }}" method="post">
bgneal@35 52 <fieldset>
bgneal@35 53 <legend>Make A Donation</legend>
bgneal@35 54 <p>Please select an amount:</p>
bgneal@35 55 <ul class="icon-list">
bgneal@66 56 <li><input name="amount" type="radio" value="" id="amount_other_r" />
bgneal@35 57 <label for="amount_other">Other:</label>
bgneal@35 58 <input name="amount" type="text" value="25.00" id="amount_other" size="7" /></li>
bgneal@35 59 <li><input name="amount" type="radio" value="5.00" id="amount_5" />
bgneal@35 60 <label for="amount_5">$5</label></li>
bgneal@35 61 <li><input name="amount" type="radio" value="10.00" id="amount_10" />
bgneal@35 62 <label for="amount_10">$10</label></li>
bgneal@35 63 <li><input name="amount" type="radio" value="15.00" id="amount_15" />
bgneal@35 64 <label for="amount_15">$15</label></li>
bgneal@35 65 <li><input name="amount" type="radio" value="20.00" id="amount_20" />
bgneal@35 66 <label for="amount_20">$20</label></li>
bgneal@35 67 </ul>
bgneal@35 68 {% if user.is_authenticated %}
bgneal@35 69 <input type="hidden" name="custom" value="{{ user.username }}" />
bgneal@35 70 <p>You are currently logged in. Would you like your site username listed with your donation?</p>
bgneal@35 71 <ul class="icon-list">
bgneal@35 72 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
bgneal@35 73 <label for="name_yes">Yes, list me as {{ user.username }}</label></li>
bgneal@35 74 {% else %}
bgneal@310 75 <p>You are not currently logged in. Please <a href="{% url 'accounts-login' %}">log in</a>
bgneal@35 76 if you would like your site username listed with your donation. Otherwise you can have your
bgneal@35 77 actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</p>
bgneal@35 78 <ul class="icon-list">
bgneal@35 79 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
bgneal@35 80 <label for="name_yes">Yes, list my name as gathered from Paypal</label></li>
bgneal@35 81 {% endif %}
bgneal@35 82 <li><input name="item_number" type="radio" value="{{ item_anon_number }}" id="name_no" />
bgneal@35 83 <label for="name_no">No, list me as {{ anonymous }}</label></li>
bgneal@35 84 </ul>
bgneal@35 85 <input type="hidden" name="cmd" value="_donations" />
bgneal@35 86 <input type="hidden" name="business" value="{{ business }}" />
bgneal@35 87 <input type="hidden" name="charset" value="utf-8" />
bgneal@310 88 <input type="hidden" name="return" value="http://{{ domain }}{% url 'donations-thanks' %}" />
bgneal@35 89 <input type="hidden" name="currency_code" value="USD" />
bgneal@35 90 <input type="hidden" name="item_name" value="{{ item_name }}" />
bgneal@35 91 <input type="hidden" name="rm" value="1" />
bgneal@35 92 <input type="hidden" name="no_note" value="0" />
bgneal@35 93 <input type="hidden" name="cn" value="Do you have any comments for {{ domain }}?" />
bgneal@35 94 <input type="hidden" name="no_shipping" value="1" />
bgneal@310 95 <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url 'donations-index' %}" />
bgneal@35 96
bgneal@35 97
bgneal@35 98 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1"
bgneal@35 99 alt="Submit Button" /></p>
bgneal@35 100 </fieldset>
bgneal@35 101 </form>
bgneal@66 102 </div>
bgneal@35 103 {% endblock %}