summaryrefslogtreecommitdiff
path: root/templates/pages/const.jinja
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pages/const.jinja')
-rw-r--r--templates/pages/const.jinja39
1 files changed, 0 insertions, 39 deletions
diff --git a/templates/pages/const.jinja b/templates/pages/const.jinja
deleted file mode 100644
index 13e8008..0000000
--- a/templates/pages/const.jinja
+++ /dev/null
@@ -1,39 +0,0 @@
-{% extends "page.jinja" %}
-
-{% set fmt="%m.%Y" %}
-
-{% block heading %}
- Konstante Kosten
-{% endblock %}
-
-{% block content %}
- <ul class="arrow">
- <li><span class="heading">Beschreibung:</span> {{exp.description}}</li>
- <li><span class="heading">Kategorie:</span> {{exp.category.name}}</li>
- <li><span class="heading">Betrag:</span> {{exp.expense | eur}}</li>
- <li><span class="heading">Betrag pro Monat:</span> {{exp.monthly | eur}}</li>
- <li><span class="heading">Start:</span> {{exp.start | date(format=fmt)}}</li>
- <li><span class="heading">Ende:</span> {{exp.end | date(format=fmt)}}</li>
- <li><span class="heading">Zahlungsrhythmus:</span>
- {% if exp.months == 1 %}
- monatlich
- {% elif exp.months == 6 %}
- halbjährlich
- {% elif exp.months == 12 %}
- jährlich
- {% else %}
- alle {{exp.months}} Monate
- {% endif %}
- </ul>
- <p>
- <a href="{{ url_for(".edit", id = exp.id) }}">Bearbeiten</a>&nbsp;
- <a href="{{ url_for(".add_from", other = exp.id) }}">Erstelle neuen auf dem jetzigen basierenden Eintrag</a>
- </p>
- {% 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) }})<br>
- {{ p.expense | eur }}
-{%- endmacro %}