{% extends "main/base.html" %} {% load static %} {% load main_extras %} {% load i18n %} {% block title %}{{ form.instance }} – Nummi{% endblock %} {% block link %} {{ block.super }} {% endblock %} {% block body %} {% with snapshot=form.instance %}

{% if snapshot.previous is not None %} {% if snapshot.sum == snapshot.diff %} {% else %} {% endif %} {% endif %} {{ snapshot }}

{% csrf_token %} {{ form }}
{% if categories %}

{% translate "Categories" %}

{% include "main/plot/category.html" %} {% endif %} {% if not snapshot.adding %}

{% translate "Transactions" %} ({{ snapshot.sum|pmvalue }} / {{ snapshot.diff|pmvalue }})

{% include "main/table/transaction.html" %} {% endif %} {% endwith %} {% endblock %}