Add basic accounting views

This commit is contained in:
Skia
2016-04-20 03:01:14 +02:00
parent c6a3559bf5
commit 5fcb3e1412
8 changed files with 204 additions and 2 deletions

View File

@ -0,0 +1,13 @@
{% extends "core/base.jinja" %}
{% block content %}
<h2>Edit account</h2>
<form action="" method="post">
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="Save!" /></p>
</form>
{% endblock %}

View File

@ -0,0 +1,22 @@
{% extends "core/base.jinja" %}
{% block content %}
<h2>View account</h2>
<ul>
{% for k,v in object.__dict__.items() %}
<li>{{ k }} - {{ v }}</li>
{% endfor %}
</ul>
<p><a href="{{ url('accounting:club_new') }}">New club account</a></p>
<ul>
{% for c in object.club_accounts.all() %}
<li><a href="{{ url('accounting:club_details', c_account_id=c.id) }}">{{ c }}</a> -
<a href="{{ url('accounting:club_edit', c_account_id=c.id) }}">Edit</a> -
<a href="{{ url('accounting:club_delete', c_account_id=c.id) }}">Delete</a></li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -0,0 +1,24 @@
{% extends "core/base.jinja" %}
{% block title %}
Bank account list
{% endblock %}
{% block content %}
<p><a href="{{ url('accounting:bank_new') }}">New bank account</a></p>
{% if bankaccount_list %}
<h3>Bank account list</h3>
<ul>
{% for a in bankaccount_list %}
<li><a href="{{ url('accounting:bank_details', b_account_id=a.id) }}">{{ a }}</a> -
<a href="{{ url('accounting:bank_edit', b_account_id=a.id) }}">Edit</a> -
<a href="{{ url('accounting:bank_delete', b_account_id=a.id) }}">Delete</a></li>
{% endfor %}
</ul>
{% else %}
There is no accounts in this website.
{% endif %}
{% endblock %}

View File

@ -0,0 +1,20 @@
{% extends "core/base.jinja" %}
{% block content %}
<h2>View account: {{ object.name }}</h2>
<ul>
{% for k,v in object.__dict__.items() %}
<li>{{ k }} - {{ v }}</li>
{% endfor %}
</ul>
<p><a href="{{ url('accounting:journal_new') }}">New journal</a></p>
<ul>
{% for c in object.journals.all() %}
<li>{{ c }}</li>
{% endfor %}
</ul>
{% endblock %}