comparison gpp/templates/donations/index.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 4ec8d1d0ccbd
children 3c48a555298d
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %}
2 {% block title %}Donations{% endblock %} 3 {% block title %}Donations{% endblock %}
3 {% block content %} 4 {% block content %}
4 <h2>Donations</h2> 5 <h2>Donations</h2>
5 <p> 6 <p>
6 SurfGuitar101.com is a member supported website. We don't display ads or have other forms of 7 SurfGuitar101.com is a member supported website. We don't display ads or have other forms of
9 and hosting costs. 10 and hosting costs.
10 </p> 11 </p>
11 <p> 12 <p>
12 We are currently using Paypal to receive donations. You don't have to be a Paypal member to donate; 13 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 14 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. 15 <a href="{% url 'contact-form' %}">contact me</a> and we can work something else out.
15 </p> 16 </p>
16 <p>Thank you for donating to SurfGuitar101.com!</p> 17 <p>Thank you for donating to SurfGuitar101.com!</p>
17 <div class="span-9 append-1"> 18 <div class="span-9 append-1">
18 <h3>Statistics for {% now "F, Y" %}:</h3> 19 <h3>Statistics for {% now "F, Y" %}:</h3>
19 <table> 20 <table>
31 <li> 32 <li>
32 {% if donation.is_anonymous %} 33 {% if donation.is_anonymous %}
33 {{ anonymous }} 34 {{ anonymous }}
34 {% else %} 35 {% else %}
35 {% if donation.user %} 36 {% if donation.user %}
36 <a href="{% url bio-view_profile donation.user.username %}">{{ donation.user.username }}</a> 37 <a href="{% url 'bio-view_profile' donation.user.username %}">{{ donation.user.username }}</a>
37 {% else %} 38 {% else %}
38 {{ donation.donor }} 39 {{ donation.donor }}
39 {% endif %} 40 {% endif %}
40 {% endif %} 41 {% endif %}
41 </li> 42 </li>
69 <p>You are currently logged in. Would you like your site username listed with your donation?</p> 70 <p>You are currently logged in. Would you like your site username listed with your donation?</p>
70 <ul class="icon-list"> 71 <ul class="icon-list">
71 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" /> 72 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
72 <label for="name_yes">Yes, list me as {{ user.username }}</label></li> 73 <label for="name_yes">Yes, list me as {{ user.username }}</label></li>
73 {% else %} 74 {% else %}
74 <p>You are not currently logged in. Please <a href="{% url accounts-login %}">log in</a> 75 <p>You are not currently logged in. Please <a href="{% url 'accounts-login' %}">log in</a>
75 if you would like your site username listed with your donation. Otherwise you can have your 76 if you would like your site username listed with your donation. Otherwise you can have your
76 actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</p> 77 actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</p>
77 <ul class="icon-list"> 78 <ul class="icon-list">
78 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" /> 79 <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" />
79 <label for="name_yes">Yes, list my name as gathered from Paypal</label></li> 80 <label for="name_yes">Yes, list my name as gathered from Paypal</label></li>
82 <label for="name_no">No, list me as {{ anonymous }}</label></li> 83 <label for="name_no">No, list me as {{ anonymous }}</label></li>
83 </ul> 84 </ul>
84 <input type="hidden" name="cmd" value="_donations" /> 85 <input type="hidden" name="cmd" value="_donations" />
85 <input type="hidden" name="business" value="{{ business }}" /> 86 <input type="hidden" name="business" value="{{ business }}" />
86 <input type="hidden" name="charset" value="utf-8" /> 87 <input type="hidden" name="charset" value="utf-8" />
87 <input type="hidden" name="return" value="http://{{ domain }}{% url donations-thanks %}" /> 88 <input type="hidden" name="return" value="http://{{ domain }}{% url 'donations-thanks' %}" />
88 <input type="hidden" name="currency_code" value="USD" /> 89 <input type="hidden" name="currency_code" value="USD" />
89 <input type="hidden" name="item_name" value="{{ item_name }}" /> 90 <input type="hidden" name="item_name" value="{{ item_name }}" />
90 <input type="hidden" name="rm" value="1" /> 91 <input type="hidden" name="rm" value="1" />
91 <input type="hidden" name="no_note" value="0" /> 92 <input type="hidden" name="no_note" value="0" />
92 <input type="hidden" name="cn" value="Do you have any comments for {{ domain }}?" /> 93 <input type="hidden" name="cn" value="Do you have any comments for {{ domain }}?" />
93 <input type="hidden" name="no_shipping" value="1" /> 94 <input type="hidden" name="no_shipping" value="1" />
94 <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url donations-index %}" /> 95 <input type="hidden" name="cancel_return" value="http://{{ domain }}{% url 'donations-index' %}" />
95 96
96 97
97 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1" 98 <p><input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif" name="I1"
98 alt="Submit Button" /></p> 99 alt="Submit Button" /></p>
99 </fieldset> 100 </fieldset>