From 0443a9d4131bd15977a4bdb08eacabf13fcd105c Mon Sep 17 00:00:00 2001
From: Nicolas Vigier
Date: Wed, 15 May 2013 22:56:26 +0000
Subject: add per person donation pages
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8262 5b7c3c08-40e5-403b-9995-ace06908e4af
---
tmpl/donations.html | 2 +-
tmpl/donations_by_month.html | 2 +-
tmpl/donations_by_pa.html | 27 +++++++++++++++++++++++++++
tmpl/index.html | 2 +-
4 files changed, 30 insertions(+), 3 deletions(-)
create mode 100644 tmpl/donations_by_pa.html
(limited to 'tmpl')
diff --git a/tmpl/donations.html b/tmpl/donations.html
index 1508a78..fef42b4 100644
--- a/tmpl/donations.html
+++ b/tmpl/donations.html
@@ -15,7 +15,7 @@
[%- FOR don IN donations.donations.sort('date').reverse -%]
[%- i = i + 1 -%]
[%- LAST IF i > l -%]
- [% don.who %] donated [% don.amount %] Euros on [% date.format(don.date) %]
+ [% don.who %] donated [% don.amount %] Euros on [% date.format(don.date) %]
[%- END -%]
diff --git a/tmpl/donations_by_month.html b/tmpl/donations_by_month.html
index 2fc79c3..ed4af7f 100644
--- a/tmpl/donations_by_month.html
+++ b/tmpl/donations_by_month.html
@@ -20,7 +20,7 @@
[%- USE date(format='%Y/%m/%d') -%]
[% FOR don IN donations.by_month.$month.donations %]
- - [% don.who %] donated [% don.amount %] Euros on [% date.format(don.date) %] ([% don.type %])
+ - [% don.who %] donated [% don.amount %] Euros on [% date.format(don.date) %] ([% don.type %])
[%- END -%]
+ Mageia.Org donations received from [% who %]
+ Summary
+
+ -
+ Total: [% donations.by_pa.$pa.total %] Euros
+
+ [% FOR type IN donations.by_pa.$pa.type.keys %]
+ -
+ [% type %]: [% donations.by_pa.$pa.type.$type %] Euros
+
+ [%- END -%]
+
+ Donations list
+
+ [%- USE date(format='%Y/%m/%d') -%]
+ [% FOR don IN donations.by_pa.$pa.donations %]
+ - [% don.amount %] Euros on [% date.format(don.date) %] ([% don.type %])
+ [%- END -%]
+
+
diff --git a/tmpl/donations_by_pa.html b/tmpl/donations_by_pa.html
new file mode 100644
index 0000000..585250e
--- /dev/null
+++ b/tmpl/donations_by_pa.html
@@ -0,0 +1,27 @@
+
+