Some layout experiments.
[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
7
8 {% block titleextra %}{{ object }}{% endblock %}
9
10
11 {% block body %}
12
13 <h1>{{ object }}</h1>
14
15 <div class="normal-text">{{ object.description|safe }}</div>
16
17 {% funding object %}
18 <div class="white-box">
19     {% offer_status object %}
20     {% offer_status_more object %}
21
22     {% if object.is_current %}
23         <div class="normal-text">
24             <h3>{% trans "Support the publication" %}</h3>
25             <form action="" method="post">
26                 {% csrf_token %}
27                 <table>
28                 {{ form.as_table }}
29                 <tr><td></td><td><button class="honking" type="submit">{% trans "Donate!" %}</button></td></tr>
30                 </table>
31             </form>
32         </div>
33     {% endif %}
34
35     <p class="normal-text"><a href="{% url 'funding' %}">{% trans "See all fundraisers." %}</a></p>
36
37 </div>
38
39
40 <h2>{% trans "Supporters" %}:</h2>
41
42 <div class="white-box normal-text">
43 {% with object.funding_payed.all as fundings %}
44     
45     <table class="wlfund">
46     {% autopaginate fundings 10 %}
47     {% for funding in fundings %}
48         <tr class="funding-plus">
49             <td><div>{{ funding.payed_at.date }}</div></td>
50             <td><div>
51                 {% if funding.name %}
52                     {{ funding.name }}
53                 {% else %}
54                     <em>{% trans "Anonymous" %}</em>
55                 {% endif %}
56             </div></td>
57             <td><div>{{ funding.amount }} zł</div></td>
58             <td><div>
59                 {% for perk in funding.perks.all %}
60                     {{ perk.name }}{% if not forloop.last %},{% endif %}
61                 {% endfor %}&nbsp;
62             </div></td>
63     {% endfor %}
64     </table>
65     
66     {% paginate %}
67 {% endwith %}
68 </div>
69
70 {% endblock %}