Year summaries.
[wolnelektury.git] / src / club / templates / club / year_summary.html
diff --git a/src/club/templates/club/year_summary.html b/src/club/templates/club/year_summary.html
new file mode 100644 (file)
index 0000000..20ed198
--- /dev/null
@@ -0,0 +1,33 @@
+{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
+{% load chunks i18n %}
+
+
+{% block titleextra %}Towarzystwo Przyjaciół Wolnych Lektur{% endblock %}
+
+
+{% block body %}
+  <div class="white-box normal-text">
+    <h1>{% blocktrans with year=view.kwargs.year email=object.email %}Summary of donations in the year {{ year }} for the address {{ email }}.{% endblocktrans %}</h1>
+
+    <table class="table">
+      <thead>
+        <tr>
+          <th>{% trans "Date" %}</th>
+          <th>{% trans "Amount" %}</th>
+        </tr>
+      </thead>
+      <tbody>
+        {% for order in payments %}
+          <tr>
+           <td>{{ order.completed_at.date }}</td>
+           <td>{{ order.get_amount }} zł</td>
+          </tr>
+        {% endfor %}
+        <tr>
+         <th>{% trans "Total" %}:</th>
+         <th>{{ total_amount|default:0 }} zł</th>
+        </tr>
+      </tbody>
+    </table>
+  </div>
+{% endblock %}