"Finish" the accounting views

This commit is contained in:
Skia
2016-05-03 08:50:54 +02:00
parent 9c0b17a9ae
commit 6e05207e84
13 changed files with 192 additions and 17 deletions

View File

@ -0,0 +1,23 @@
{% extends "core/base.jinja" %}
{% block title %}
Accounting type list
{% endblock %}
{% block content %}
<p><a href="{{ url('accounting:type_new') }}">New accounting type</a></p>
{% if accountingtype_list %}
<h3>Accounting type list</h3>
<ul>
{% for a in accountingtype_list %}
<li><a href="{{ url('accounting:type_edit', type_id=a.id) }}">{{ a }}</a></li>
{% endfor %}
</ul>
{% else %}
There is no types in this website.
{% endif %}
{% endblock %}

View File

@ -5,6 +5,7 @@
{% endblock %}
{% block content %}
<p><a href="{{ url('accounting:type_list') }}">Manage accounting types</a></p>
<p><a href="{{ url('accounting:bank_new') }}">New bank account</a></p>
{% if bankaccount_list %}
<h3>Bank account list</h3>

View File

@ -9,8 +9,12 @@
</ul>
<p><a href="{{ url('accounting:journal_new') }}">New journal</a></p>
<ul>
{% for c in object.journals.all() %}
<li>{{ c }}</li>
{% for j in object.journals.all() %}
<li>
<a href="{{ url('accounting:journal_details', j_id=j.id) }}">{{ j }}</a> -
<a href="{{ url('accounting:journal_edit', j_id=j.id) }}">Edit</a>
</li>
{% endfor %}
</ul>

View File

@ -0,0 +1,22 @@
{% extends "core/base.jinja" %}
{% block content %}
<h2>View journal: {{ object.name }}</h2>
<ul>
{% for k,v in object.__dict__.items() %}
<li>{{ k }} - {{ v }}</li>
{% endfor %}
</ul>
<p><a href="{{ url('accounting:op_new') }}">New operation</a></p>
<ul>
{% for o in object.operations.all() %}
<li>
<a href="{{ url('accounting:op_edit', op_id=o.id) }}">{{ o }}</a>
</li>
{% endfor %}
</ul>
{% endblock %}