Mercurial > public > sg101
comparison gpp/templates/donations/index.html @ 66:9a29e9933959
Donations: made the donations debug flag be in local_settings. Changed the donations template to be a two column display of stats and donors.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 27 Jun 2009 22:20:35 +0000 |
parents | f77a1cdd7a46 |
children | 4ec8d1d0ccbd |
comparison
equal
deleted
inserted
replaced
65:9fabeabd89d4 | 66:9a29e9933959 |
---|---|
12 We are currently using Paypal to receive donations. You don't have to be a Paypal member to donate; | 12 We are currently using Paypal to receive donations. You don't have to be a Paypal member to donate; |
13 major credit cards are also accepted. If you really don't do Paypal, please | 13 major credit cards are also accepted. If you really don't do Paypal, please |
14 <a href="{% url contact-form %}">contact me</a> and we can work something else out. | 14 <a href="{% url contact-form %}">contact me</a> and we can work something else out. |
15 </p> | 15 </p> |
16 <p>Thank you for donating to SurfGuitar101.com!</p> | 16 <p>Thank you for donating to SurfGuitar101.com!</p> |
17 <div class="span-9 append-1"> | |
17 <h3>Statistics for {% now "F, Y" %}:</h3> | 18 <h3>Statistics for {% now "F, Y" %}:</h3> |
18 <table> | 19 <table> |
19 <tr><th>Goal:</th><td>${{ goal }}</td></tr> | 20 <tr><th>Goal:</th><td>${{ goal }}</td></tr> |
20 <tr><th>Gross:</th><td>${{ gross }}</td></tr> | 21 <tr><th>Gross:</th><td>${{ gross }}</td></tr> |
21 <tr><th>Net:</th><td>${{ net }}</td></tr> | 22 <tr><th>Net:</th><td>${{ net }}</td></tr> |
22 <tr><th>Left to Go:</th><td>${{ left }}</td></tr> | 23 <tr><th>Left to Go:</th><td>${{ left }}</td></tr> |
23 </table> | 24 </table> |
25 </div> | |
26 <div class="span-9 last"> | |
27 <h3>Donors for {% now "F, Y" %}:</h3> | |
24 {% if donations %} | 28 {% if donations %} |
25 <h3>Donors for {% now "F, Y" %}:</h3> | |
26 <ul> | 29 <ul> |
27 {% for donation in donations %} | 30 {% for donation in donations %} |
28 <li> | 31 <li> |
29 {% if donation.is_anonymous %} | 32 {% if donation.is_anonymous %} |
30 {{ anonymous }} | 33 {{ anonymous }} |
36 {% endif %} | 39 {% endif %} |
37 {% endif %} | 40 {% endif %} |
38 </li> | 41 </li> |
39 {% endfor %} | 42 {% endfor %} |
40 </ul> | 43 </ul> |
44 {% else %} | |
45 <p>We haven't received any donations this month. You could be the first!</p> | |
41 {% endif %} | 46 {% endif %} |
47 </div> | |
42 | 48 |
43 <h3>Donation Form</h3> | 49 <div class="span-19 last"> |
44 <form action="{{ form_action }}" method="post"> | 50 <form action="{{ form_action }}" method="post"> |
45 <fieldset> | 51 <fieldset> |
46 <legend>Make A Donation</legend> | 52 <legend>Make A Donation</legend> |
47 <p>Please select an amount:</p> | 53 <p>Please select an amount:</p> |
48 <ul class="icon-list"> | 54 <ul class="icon-list"> |
49 <li><input name="amount" type="radio" value="" id="amount_other" /> | 55 <li><input name="amount" type="radio" value="" id="amount_other_r" /> |
50 <label for="amount_other">Other:</label> | 56 <label for="amount_other">Other:</label> |
51 <input name="amount" type="text" value="25.00" id="amount_other" size="7" /></li> | 57 <input name="amount" type="text" value="25.00" id="amount_other" size="7" /></li> |
52 <li><input name="amount" type="radio" value="5.00" id="amount_5" /> | 58 <li><input name="amount" type="radio" value="5.00" id="amount_5" /> |
53 <label for="amount_5">$5</label></li> | 59 <label for="amount_5">$5</label></li> |
54 <li><input name="amount" type="radio" value="10.00" id="amount_10" /> | 60 <li><input name="amount" type="radio" value="10.00" id="amount_10" /> |
90 | 96 |
91 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1" | 97 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1" |
92 alt="Submit Button" /></p> | 98 alt="Submit Button" /></p> |
93 </fieldset> | 99 </fieldset> |
94 </form> | 100 </form> |
95 | 101 </div> |
96 {% endblock %} | 102 {% endblock %} |