c7405cad8c2564055783419ebbb23b3000bb2fda
[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 type="submit">Wpłać!</button></td></tr>
28                 </table>
29             </form>
30
31         </div>
32     {% endif %}
33
34     <p class="normal-text"><a href="{% url 'funding' %}">Zobacz wszystkie zbiórki.</a></p>
35
36 </div>
37
38
39 <h2>{% trans "Supporters" %}:</h2>
40
41 <div class="white-box normal-text">
42     
43     <table class="wlfund">
44     {% for funding in object.funding_payed.all %}
45         <tr class="funding-plus">
46             <td><div>{{ funding.payed_at.date }}</div></td>
47             <td><div>
48                 {% if funding.anonymous %}
49                     <em>{% trans "Anonymous" %}</em>
50                 {% else %}
51                     {{ funding.name }}
52                 {% endif %}
53             </div></td>
54             <td><div>+{{ funding.amount }} zł</div></td>
55             <td><div>
56                 {% for perk in funding.perks.all %}
57                     {{ perk.name }}{% if not forloop.last %},{% endif %}
58                 {% endfor %}&nbsp;
59             </div></td>
60     {% endfor %}
61     </table>
62
63 </div>
64
65 {% endblock %}