Basically usable funding workflow.
[wolnelektury.git] / apps / funding / templates / funding / wlfund.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block titleextra %}{% trans "Wolne Lektury Fund" %}{% endblock %}
5
6 {% block body %}
7
8 <h1>{% trans "Wolne Lektury Fund" %}</h1>
9
10
11 <table class="normal-text wlfund">
12
13     <tr>
14         <td><div>{% trans "Balance" %}:</div></td>
15         <td><div>&nbsp;</div></td>
16         <td><div>{{ amount }} zł</div></td>
17         <td><div>&nbsp;</div></td>
18     </tr>
19
20     {% for tag, entry in log %}
21     {% if tag == 'spent' %}
22         <tr class="funding-minus">
23             <td><div>{{ entry.timestamp }}</div></td>
24             <td><div>-{{ entry.amount }} zł</div></td>
25             <td><div>{{ entry.total }} zł</div></td>
26             <td><div>{% trans "Book" %}: <a href="{{ entry.book.get_absolute_url }}">
27                 {{ entry.book }}</a></div></td>
28         </tr>
29     {% else %}
30         <tr class="funding-plus">
31             <td><div>{{ entry.end }}</div></td>
32             <td><div>+{{ entry.sum }} zł</div></td>
33             <td><div>{{ entry.total }} zł</div></td>
34             <td><div>{% trans "Money from partial fundraiser" %}:
35                 <a href="{{ entry.get_absolute_url }}">
36                 {{ entry }}</a></div></td>
37         </tr>
38     {% endif %}
39     {% endfor %}
40 </table>
41
42
43 {% endblock %}