mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 11:59:23 +00:00
"Finish" the accounting views
This commit is contained in:
23
accounting/templates/accounting/accountingtype_list.jinja
Normal file
23
accounting/templates/accounting/accountingtype_list.jinja
Normal 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 %}
|
||||
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
22
accounting/templates/accounting/journal_details.jinja
Normal file
22
accounting/templates/accounting/journal_details.jinja
Normal 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 %}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user