aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/transactions_by_pa.html
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-16 20:27:06 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-16 20:27:06 +0000
commitc6aa1602caca738ac79fe2b242e8fbe7dad5afff (patch)
treeeb4e41a9343a2c3c7b2aef228d73a2038acbcb6f /tmpl/transactions_by_pa.html
parentf1647e2f33ab09e70c19f9265b40f09656986b41 (diff)
downloadmgatres-c6aa1602caca738ac79fe2b242e8fbe7dad5afff.tar
mgatres-c6aa1602caca738ac79fe2b242e8fbe7dad5afff.tar.gz
mgatres-c6aa1602caca738ac79fe2b242e8fbe7dad5afff.tar.bz2
mgatres-c6aa1602caca738ac79fe2b242e8fbe7dad5afff.tar.xz
mgatres-c6aa1602caca738ac79fe2b242e8fbe7dad5afff.zip
Add per person transactions pages
git-svn-id: svn+ssh://svn.mageia.org/svn/soft/mga-treasurer/trunk@8288 5b7c3c08-40e5-403b-9995-ace06908e4af
Diffstat (limited to 'tmpl/transactions_by_pa.html')
-rw-r--r--tmpl/transactions_by_pa.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/tmpl/transactions_by_pa.html b/tmpl/transactions_by_pa.html
new file mode 100644
index 0000000..6b391ec
--- /dev/null
+++ b/tmpl/transactions_by_pa.html
@@ -0,0 +1,33 @@
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title>[% config.sitename %]: Transactions for [% who %]</title>
+ </head>
+ <body>
+ <h1>Mageia.Org transactions for [% who %]</h1>
+ <h3>Summary</h3>
+ <ul>
+ [% IF transactions.by_pa.$pa.revenues != 0 %]
+ <li><b>Revenues</b>: [% transactions.by_pa.$pa.revenues %] Euros</li>
+ [% END %]
+ [% IF transactions.by_pa.$pa.expenses != 0 %]
+ <li><b>Expenses</b>: [% transactions.by_pa.$pa.expenses %] Euros</li>
+ [% END %]
+ </ul>
+ <h3>Details</h3>
+ <table border="1">
+ <tr>
+ <th>Date</th>
+ <th>Amount</th>
+ <th>Account</th>
+ <th>Who</th>
+ <th>Notes</th>
+ <th>Category</th>
+ </tr>
+ [%- USE date(format='%Y/%m/%d') -%]
+ [% FOR tra IN transactions.by_pa.$pa.transactions.sort('date').reverse %]
+ [%- INCLUDE tra_row.html %]
+ [%- END -%]
+ </table>
+ </body>
+</html>