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