annotate gpp/templates/donations/index.html @ 133:c515b7401078

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