diff options
Diffstat (limited to 'templates/pages')
-rw-r--r-- | templates/pages/add.mako | 12 | ||||
-rw-r--r-- | templates/pages/cats.mako | 8 | ||||
-rw-r--r-- | templates/pages/const.mako | 4 | ||||
-rw-r--r-- | templates/pages/constadd.mako | 4 | ||||
-rw-r--r-- | templates/pages/constedit.mako | 4 | ||||
-rw-r--r-- | templates/pages/constlist.mako | 4 | ||||
-rw-r--r-- | templates/pages/edit.mako | 4 | ||||
-rw-r--r-- | templates/pages/show.mako | 8 |
8 files changed, 24 insertions, 24 deletions
diff --git a/templates/pages/add.mako b/templates/pages/add.mako index 4c7116f..e104fc5 100644 --- a/templates/pages/add.mako +++ b/templates/pages/add.mako @@ -9,17 +9,17 @@ <input type="submit" /> </form> -<%def name="heading()"> +<%block name="heading"> Neue Ausgabe hinzufügen -</%def> +</%block> -<%def name="js()"> +<%block name="js"> ${parent.js()} <script type="text/javascript" src=${"/static/jqueryui/jquery-ui-1.8.2.js" | url}></script> <script type="text/javascript" src=${"/static/js/add.js" | url}></script> -</%def> +</%block> -<%def name="style()"> +<%block name="style"> ${parent.style()} <link href=${"/static/jqueryui/css/ui-darkness/jquery-ui-1.8.2.custom.css" | url} rel="stylesheet" type="text/css" /> -</%def> +</%block> diff --git a/templates/pages/cats.mako b/templates/pages/cats.mako index 87fa3e9..0f71921 100644 --- a/templates/pages/cats.mako +++ b/templates/pages/cats.mako @@ -12,11 +12,11 @@ </form> <input id="new" name="n-" style="display:none;" /> -<%def name="heading()"> +<%block name="heading"> Kategorien -</%def> +</%block> -<%def name="js()"> +<%block name="js"> ${parent.js()} <script type="text/javascript" src=${"/static/js/cats.js" | url}></script> -</%def> +</%block> diff --git a/templates/pages/const.mako b/templates/pages/const.mako index f1ce192..acb672b 100644 --- a/templates/pages/const.mako +++ b/templates/pages/const.mako @@ -33,6 +33,6 @@ context.write(self.right_arrow(*create(p))) %> -<%def name="heading()"> +<%block name="heading"> Konstante Kosten -</%def> +</%block> diff --git a/templates/pages/constadd.mako b/templates/pages/constadd.mako index 6b6a98f..9b7df64 100644 --- a/templates/pages/constadd.mako +++ b/templates/pages/constadd.mako @@ -9,6 +9,6 @@ <input type="submit" /> </form> -<%def name="heading()"> +<%block name="heading"> Füge neue konstante Ausgabe hinzu -</%def> +</%block> diff --git a/templates/pages/constedit.mako b/templates/pages/constedit.mako index 91aa1d8..618df2e 100644 --- a/templates/pages/constedit.mako +++ b/templates/pages/constedit.mako @@ -1,5 +1,5 @@ <%inherit file="constadd.mako" /> -<%def name="heading()"> +<%block name="heading"> Konstante Ausgabe bearbeiten -</%def> +</%block> diff --git a/templates/pages/constlist.mako b/templates/pages/constlist.mako index 02ff5aa..8446641 100644 --- a/templates/pages/constlist.mako +++ b/templates/pages/constlist.mako @@ -16,6 +16,6 @@ % endfor </ul> -<%def name="heading()"> +<%block name="heading"> Konstante Kosten -</%def> +</%block> diff --git a/templates/pages/edit.mako b/templates/pages/edit.mako index a6f5815..37c93dd 100644 --- a/templates/pages/edit.mako +++ b/templates/pages/edit.mako @@ -1,5 +1,5 @@ <%inherit file="add.mako" /> -<%def name="heading()"> +<%block name="heading"> Bearbeite Kosteneintrag -</%def> +</%block> diff --git a/templates/pages/show.mako b/templates/pages/show.mako index 565a518..a255fa9 100644 --- a/templates/pages/show.mako +++ b/templates/pages/show.mako @@ -38,22 +38,22 @@ ${self.left_arrow(date, date)} ${self.right_arrow(date, date)} % endif -<%def name="heading()"> +<%block name="heading"> % if len(exps) > 1: Aktuelle Kosten % else: Kosten für ${get_d(exps[0])} % endif -</%def> +</%block> <%def name="get_d(e)"> ${e.date.year}/${e.date.month} </%def> -<%def name="js()"> +<%block name="js"> ${parent.js()} <script type="text/javascript" src=${"/static/js/show.js" | url}></script> -</%def> +</%block> <%def name="detail(name, sum, set, color=None)"> <div class="detail"> |