diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-15 03:19:21 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2011-02-15 03:19:21 +0100 |
commit | 01444a8e45b7bd5b846ebc1a26afb87ee18f8265 (patch) | |
tree | ceb2fcc0b90663eb02a8271fdc2427cd869771d4 /templates/pages/const.mako | |
parent | a69e90c161e0a476f81efe907631c4c26c4fd88e (diff) | |
download | kosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.tar.gz kosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.tar.bz2 kosten-01444a8e45b7bd5b846ebc1a26afb87ee18f8265.zip |
More nice things for constant expenses
Diffstat (limited to 'templates/pages/const.mako')
-rw-r--r-- | templates/pages/const.mako | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/pages/const.mako b/templates/pages/const.mako new file mode 100644 index 0000000..a65a260 --- /dev/null +++ b/templates/pages/const.mako @@ -0,0 +1,26 @@ +<%inherit file="/page.mako" /> + +<ul class="arrow"> + <li><span class="heading">Description:</span> ${exp.description}</li> + <li><span class="heading">Expense:</span> ${exp.expense}</li> + <li><span class="heading">Monthly expense:</span> ${exp.monthly}</li> + <li><span class="heading">Start Date:</span> ${dformat(exp.start)}</li> + <li><span class="heading">End Date:</span> ${dformat(exp.end)}</li> + <li><span class="heading">Occurrence (every x months):</span> ${exp.months}</li> +</ul> +<p><a href=${"/const/edit/%s" % exp.id | url}>Edit</a> <a href=${"/const/add/from/%s" % exp.id | url}>Create new based on this</a></p> + +<% + p = exp.prev + if p: + context.write(self.left_arrow("const/%s" % p.id, p.description)) + + p = exp.next + if p: + context.write(self.right_arrow("const/%s" % p.id, p.description)) +%> + + +<%def name="heading()"> + Constant Expense +</%def> |