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@35
|
17 <h3>Statistics for {% now "F, Y" %}:</h3>
|
bgneal@35
|
18 <table>
|
bgneal@35
|
19 <tr><th>Goal:</th><td>${{ goal }}</td></tr>
|
bgneal@35
|
20 <tr><th>Gross:</th><td>${{ gross }}</td></tr>
|
bgneal@35
|
21 <tr><th>Net:</th><td>${{ net }}</td></tr>
|
bgneal@35
|
22 <tr><th>Left to Go:</th><td>${{ left }}</td></tr>
|
bgneal@35
|
23 </table>
|
bgneal@35
|
24 {% if donations %}
|
bgneal@35
|
25 <h3>Donors for {% now "F, Y" %}:</h3>
|
bgneal@35
|
26 <ul>
|
bgneal@35
|
27 {% for donation in donations %}
|
bgneal@35
|
28 <li>
|
bgneal@35
|
29 {% if donation.is_anonymous %}
|
bgneal@35
|
30 {{ anonymous }}
|
bgneal@35
|
31 {% else %}
|
bgneal@35
|
32 {% if donation.user %}
|
bgneal@35
|
33 <a href="{% url bio-view_profile donation.user.username %}">{{ donation.user.username }}</a>
|
bgneal@35
|
34 {% else %}
|
bgneal@35
|
35 {{ donation.donor }}
|
bgneal@35
|
36 {% endif %}
|
bgneal@35
|
37 {% endif %}
|
bgneal@35
|
38 </li>
|
bgneal@35
|
39 {% endfor %}
|
bgneal@35
|
40 </ul>
|
bgneal@35
|
41 {% endif %}
|
bgneal@35
|
42
|
bgneal@35
|
43 <h3>Donation Form</h3>
|
bgneal@35
|
44 <form action="{{ form_action }}" method="post">
|
bgneal@35
|
45 <fieldset>
|
bgneal@35
|
46 <legend>Make A Donation</legend>
|
bgneal@35
|
47 <p>Please select an amount:</p>
|
bgneal@35
|
48 <ul class="icon-list">
|
bgneal@35
|
49 <li><input name="amount" type="radio" value="" id="amount_other" />
|
bgneal@35
|
50 <label for="amount_other">Other:</label>
|
bgneal@35
|
51 <input name="amount" type="text" value="25.00" id="amount_other" size="7" /></li>
|
bgneal@35
|
52 <li><input name="amount" type="radio" value="5.00" id="amount_5" />
|
bgneal@35
|
53 <label for="amount_5">$5</label></li>
|
bgneal@35
|
54 <li><input name="amount" type="radio" value="10.00" id="amount_10" />
|
bgneal@35
|
55 <label for="amount_10">$10</label></li>
|
bgneal@35
|
56 <li><input name="amount" type="radio" value="15.00" id="amount_15" />
|
bgneal@35
|
57 <label for="amount_15">$15</label></li>
|
bgneal@35
|
58 <li><input name="amount" type="radio" value="20.00" id="amount_20" />
|
bgneal@35
|
59 <label for="amount_20">$20</label></li>
|
bgneal@35
|
60 </ul>
|
bgneal@35
|
61 {% if user.is_authenticated %}
|
bgneal@35
|
62 <input type="hidden" name="custom" value="{{ user.username }}" />
|
bgneal@35
|
63 <p>You are currently logged in. Would you like your site username listed with your donation?</p>
|
bgneal@35
|
64 <ul class="icon-list">
|
bgneal@35
|
65 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
|
bgneal@35
|
66 <label for="name_yes">Yes, list me as {{ user.username }}</label></li>
|
bgneal@35
|
67 {% else %}
|
bgneal@35
|
68 <p>You are not currently logged in. Please <a href="{% url accounts-login %}">log in</a>
|
bgneal@35
|
69 if you would like your site username listed with your donation. Otherwise you can have your
|
bgneal@35
|
70 actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</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 my name as gathered from Paypal</label></li>
|
bgneal@35
|
74 {% endif %}
|
bgneal@35
|
75 <li><input name="item_number" type="radio" value="{{ item_anon_number }}" id="name_no" />
|
bgneal@35
|
76 <label for="name_no">No, list me as {{ anonymous }}</label></li>
|
bgneal@35
|
77 </ul>
|
bgneal@35
|
78 <input type="hidden" name="cmd" value="_donations" />
|
bgneal@35
|
79 <input type="hidden" name="business" value="{{ business }}" />
|
bgneal@35
|
80 <input type="hidden" name="charset" value="utf-8" />
|
bgneal@35
|
81 <input type="hidden" name="return" value="http://{{ domain }}{% url donations-thanks %}" />
|
bgneal@35
|
82 <input type="hidden" name="currency_code" value="USD" />
|
bgneal@35
|
83 <input type="hidden" name="item_name" value="{{ item_name }}" />
|
bgneal@35
|
84 <input type="hidden" name="rm" value="1" />
|
bgneal@35
|
85 <input type="hidden" name="no_note" value="0" />
|
bgneal@35
|
86 <input type="hidden" name="cn" value="Do you have any comments for {{ domain }}?" />
|
bgneal@35
|
87 <input type="hidden" name="no_shipping" value="1" />
|
bgneal@35
|
88 <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url donations-index %}" />
|
bgneal@35
|
89
|
bgneal@35
|
90
|
bgneal@35
|
91 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1"
|
bgneal@35
|
92 alt="Submit Button" /></p>
|
bgneal@35
|
93 </fieldset>
|
bgneal@35
|
94 </form>
|
bgneal@35
|
95
|
bgneal@35
|
96 {% endblock %}
|