30 lines
905 B
HTML
30 lines
905 B
HTML
{% extends "main/form/base.html" %}
|
|
{% load main_extras %}
|
|
{% load i18n %}
|
|
{% block title_new %}
|
|
{% translate "Create snapshot" %}
|
|
{% endblock %}
|
|
{% block h2_new %}
|
|
{% translate "New snapshot" %}
|
|
{% endblock %}
|
|
{% block h2 %}
|
|
{{ form.instance.sum|check:form.instance.diff }}
|
|
{{ form.instance }}
|
|
{% endblock %}
|
|
{% block pre %}
|
|
{% if account %}
|
|
<p>
|
|
<a href="{{ account.get_absolute_url }}">{{ account.icon|remix }}{{ account }}</a>
|
|
</p>
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% block tables %}
|
|
{% if categories %}
|
|
<h3>{% translate "Categories" %}</h3>
|
|
{% include "main/plot/category.html" %}
|
|
{% endif %}
|
|
{% if not form.instance|adding %}
|
|
<h3>{% translate "Transactions" %} ({{ form.instance.sum|pmvalue }} / {{ form.instance.diff|pmvalue }})</h3>
|
|
{% include "main/table/transaction.html" %}
|
|
{% endif %}
|
|
{% endblock %}
|