diff options
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> |