2016-10-05 13:54:00 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% trans %}Label list{% endtrans %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2017-10-09 11:58:18 +00:00
|
|
|
<div id="accounting">
|
|
|
|
<p>
|
|
|
|
<a href="{{ url('accounting:bank_list') }}">{% trans %}Accounting{% endtrans %}</a> >
|
|
|
|
<a href="{{ url('accounting:bank_details', b_account_id=object.bank_account.id) }}">{{object.bank_account }}</a> >
|
|
|
|
<a href="{{ url('accounting:club_details', c_account_id=object.id) }}">{{ object }}</a>
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
<p><a href="{{ url('accounting:club_details', c_account_id=object.id) }}">{% trans %}Back to club account{% endtrans %}</a></p>
|
2017-02-05 16:26:04 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_ACCOUNTING_ADMIN_ID) %}
|
2017-10-09 11:58:18 +00:00
|
|
|
<p><a href="{{ url('accounting:label_new') }}?parent={{ object.id }}">{% trans %}New label{% endtrans %}</a></p>
|
2017-02-05 16:26:04 +00:00
|
|
|
{% endif %}
|
2017-10-09 11:58:18 +00:00
|
|
|
{% if object.labels.all() %}
|
|
|
|
<h3>{% trans %}Label list{% endtrans %}</h3>
|
|
|
|
<ul>
|
|
|
|
{% for l in object.labels.all() %}
|
|
|
|
<li><a href="{{ url('accounting:label_edit', label_id=l.id) }}">{{ l }}</a>
|
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_ACCOUNTING_ADMIN_ID) %}
|
|
|
|
-
|
|
|
|
<a href="{{ url('accounting:label_delete', label_id=l.id) }}">{% trans %}Delete{% endtrans %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
{% trans %}There is no label in this club account.{% endtrans %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2016-10-05 13:54:00 +00:00
|
|
|
{% endblock %}
|
|
|
|
|