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