typo fix
[wolnelektury.git] / apps / funding / templates / funding / offer_detail.html
1 {% extends "base.html" %}
2 {% load url from future %}
3 {% load i18n static %}
4 {% load funding_tags %}
5 {% load pagination_tags %}
6 {% load fnp_share %}
7 {% load thumbnail %}
8
9
10 {% block titleextra %}{{ object }}{% endblock %}
11
12 {% block metadescription %}Wesprzyj kolejną publikację Wolnych Lektur!{% endblock %}
13
14
15 {% block body %}
16
17 <h1>{{ object }}</h1>
18
19 {% funding object show_title=False %}
20 <div class="white-box">
21     <div class="funding-details-intro">
22         {% if object.cover %}
23             <img src="
24                 {% thumbnail object.cover "139x193" as thumb %}
25                     {{ thumb.url }}
26                 {% empty %}
27                     {{ object.cover.url }}
28                 {% endthumbnail %}
29             " alt="Cover" class="funding-cover" />
30         {% endif %}
31         <div class="normal-text">
32         <h3>{% trans "Help free the book!" %}</h3>
33         {{ object.description|safe }}
34         {% offer_status object %}
35         {% offer_status_more object %}
36         <p><a href="{% url 'infopage' 'wesprzyj' %}">{% trans "Learn more" %}</a>.</p>
37         </div>
38         
39         <div style="clear:both;"></div>
40     </div>
41
42     {% if object.is_current %}
43         <div class="normal-text">
44             <h3>{% trans "Support the publication" %}</h3>
45             <form action="" method="post">
46                 {% csrf_token %}
47                 <table>
48                 {{ form.as_table }}
49                 <tr><td></td><td>
50                     <button type="submit" style="border: none; background: none; cursor: pointer">
51                     <img alt="{% trans 'Donate!' %}" src="{% static 'img/payu.png' %}" />
52                     </button>
53                     </td></tr>
54                 </table>
55             </form>
56         </div>
57
58         {% url 'funding_current' object.slug as current %}
59         <p class="normal-text">{% trans "Tell your friends!" %}</p>
60         <p class="share">{% share current _("Support Wolne Lektury!") "big" %}</p>
61     {% endif %}
62
63     <p class="normal-text"><a href="{% url 'funding' %}">{% trans "See all fundraisers." %}</a></p>
64
65 </div>
66
67
68 <h2>{% trans "Supporters" %}:</h2>
69
70 <div class="white-box normal-text">
71 {% with object.funding_payed.all as fundings %}
72     
73     <table class="wlfund">
74     {% autopaginate fundings 10 %}
75     {% for funding in fundings %}
76         <tr class="funding-plus">
77             <td class="oneline">{{ funding.payed_at.date }}</td>
78             <td>
79                 {% if funding.name %}
80                     {{ funding.name }}
81                 {% else %}
82                     <em>{% trans "Anonymous" %}</em>
83                 {% endif %}
84             </td>
85             <td>{{ funding.amount }}&nbsp;zł</td>
86             <td>&nbsp;
87                 {% for perk in funding.perks.all %}
88                     {{ perk.name }}{% if not forloop.last %},{% endif %}
89                 {% endfor %}
90             </td>
91     {% endfor %}
92     </table>
93     
94     {% paginate %}
95 {% endwith %}
96 </div>
97
98 {% endblock %}