summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-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>