summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-25 14:10:44 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-25 14:10:44 +0200
commitd3fa7f56c85241db83ebb986cdbf64004f5682be (patch)
tree9854e213fc7f80c744839f201ca26589471eddd5 /templates
parent0ef8460158520285c89f32a03f387ef6871ce3f1 (diff)
downloadkosten-d3fa7f56c85241db83ebb986cdbf64004f5682be.tar.gz
kosten-d3fa7f56c85241db83ebb986cdbf64004f5682be.tar.bz2
kosten-d3fa7f56c85241db83ebb986cdbf64004f5682be.zip
Added the ability to edit an expense
Diffstat (limited to 'templates')
-rw-r--r--templates/edit.mako5
-rw-r--r--templates/show.mako4
2 files changed, 7 insertions, 2 deletions
diff --git a/templates/edit.mako b/templates/edit.mako
new file mode 100644
index 0000000..09d5ea4
--- /dev/null
+++ b/templates/edit.mako
@@ -0,0 +1,5 @@
+<%inherit file="/add.mako" />
+
+<%def name="heading()">
+ Edit expense
+</%def>
diff --git a/templates/show.mako b/templates/show.mako
index 88d802c..dc23b9c 100644
--- a/templates/show.mako
+++ b/templates/show.mako
@@ -9,7 +9,7 @@
<div class="details">
<ul>
% for exp in c.all:
- <li>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense} </li>
+ <li><a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense}</a></li>
% endfor
</ul>
</div>
@@ -26,7 +26,7 @@
<div class="details">
<ul>
% for exp in e.all:
- <li>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense} </li>
+ <li><a href=${"/edit/%s" % exp.id | url}>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense}</a></li>
% endfor
</ul>
</div>