summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-05-10 19:57:43 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-05-10 19:57:43 +0200
commit91c32bce7e26683d02854f84a2b35d8461e16699 (patch)
treeccc4ba62f8299e3fdd7adfce224be98a4e739da5 /templates
parent387e4209675ae04088b30f29e060746d3d8403b1 (diff)
downloadkosten-91c32bce7e26683d02854f84a2b35d8461e16699.tar.gz
kosten-91c32bce7e26683d02854f84a2b35d8461e16699.tar.bz2
kosten-91c32bce7e26683d02854f84a2b35d8461e16699.zip
Show details
Diffstat (limited to 'templates')
-rw-r--r--templates/root.mako5
-rw-r--r--templates/show.mako14
2 files changed, 19 insertions, 0 deletions
diff --git a/templates/root.mako b/templates/root.mako
index 627d14a..25fd2a4 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -2,6 +2,7 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+ ${self.js()}
<!-- <link rel="shortcut icon" href=${"favicon.ico" | url} type="image/icon"> -->
<title>${self.title()}</title>
${self.style()}
@@ -45,6 +46,10 @@
<link href=${"/static/css/style.css" | url} rel="stylesheet" type="text/css" />
</%def>
+<%def name="js()">
+ <script type="text/javascript" src=${"/static/js/jquery-1.4.2.js" | url}></script>
+</%def>
+
<%def name="footer()">
powered by <a href="http://www.makotemplates.org">mako</a> &amp; <a href="http://www.webpy.org">web.py</a> |
© 2010. All Rights Reserved. René Neumann |
diff --git a/templates/show.mako b/templates/show.mako
index 270477a..97c2731 100644
--- a/templates/show.mako
+++ b/templates/show.mako
@@ -9,6 +9,15 @@
% endfor
<strong>Constant:</strong> ${e.const}<br>
<strong>In Summa:</strong> ${e.sum}<br><br>
+
+ <h3 class="details_heading">Details</h3>
+ <div class="details">
+ <ul>
+ % for exp in e.all:
+ <li>${exp.day}.${exp.month}. -- ${exp.description}: ${exp.expense} </li>
+ % endfor
+ </ul>
+ </div>
% endfor
<%def name="heading()">
@@ -23,3 +32,8 @@
<%def name="get_d(e)">
${e.date.year}/${e.date.month}
</%def>
+
+<%def name="js()">
+ ${parent.js()}
+ <script type="text/javascript" src=${"/static/js/show.js" | url}></script>
+</%def>