annotate gpp/templates/donations/index.html @ 557:7247a406f92b

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