From bcc2e4fcec619078059102dbd5c8172010390a46 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Mon, 15 Apr 2013 00:59:59 +0200 Subject: Some reorganizing --- templates/consts/show.jinja | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/consts/show.jinja (limited to 'templates/consts/show.jinja') diff --git a/templates/consts/show.jinja b/templates/consts/show.jinja new file mode 100644 index 0000000..c09fc3b --- /dev/null +++ b/templates/consts/show.jinja @@ -0,0 +1,39 @@ +{% extends "layout.jinja" %} +{% from "macros.jinja" import left_arrow, right_arrow %} +{% set fmt="%m.%Y" %} + +{% block heading %} + Konstante Kosten +{% endblock %} + +{% block content %} + +

+ Bearbeiten  + Erstelle neuen auf dem jetzigen basierenden Eintrag +

+ {% if exp.prev %} {{ left_arrow(url_for(".show", id = exp.prev.id), target(exp.prev)) }} {% endif %} + {% if exp.next %} {{ right_arrow(url_for(".show", id = exp.next.id), target(exp.next)) }} {% endif %} +{% endblock %} + +{% macro target(p) -%} + {{ p.description }} ({{ p.start | date(fmt) ~ "-" ~ p.end | date(fmt) }})
+ {{ p.expense | eur }} +{%- endmacro %} -- cgit v1.2.3-70-g09d2