2016-08-31 02:04:28 +00:00
|
|
|
{% extends "core/user_base.jinja" %}
|
2016-02-01 16:35:55 +00:00
|
|
|
|
|
|
|
{% block title %}
|
2016-07-19 17:03:16 +00:00
|
|
|
{% trans user_name=user.get_display_name() %}{{ user_name }}'s tools{% endtrans %}
|
2016-02-01 16:35:55 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-08-31 02:04:28 +00:00
|
|
|
{% block infos %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<h3>{% trans %}User Tools{% endtrans %}</h3>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
2016-07-21 10:09:57 +00:00
|
|
|
<hr>
|
2016-07-19 17:03:16 +00:00
|
|
|
<h4>{% trans %}Sith management{% endtrans %}</h4>
|
2016-02-01 16:35:55 +00:00
|
|
|
<ul>
|
2016-08-14 02:35:08 +00:00
|
|
|
{% if user.is_root %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<li><a href="{{ url('core:group_list') }}">{% trans %}Groups{% endtrans %}</a></li>
|
|
|
|
{% endif %}
|
2016-08-14 02:35:08 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_MAIN_BOARD_GROUP) or user.is_root %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<li><a href="{{ url('subscription:subscription') }}">{% trans %}Subscriptions{% endtrans %}</a></li>
|
|
|
|
{% endif %}
|
2016-02-01 16:35:55 +00:00
|
|
|
</ul>
|
2016-07-17 22:47:56 +00:00
|
|
|
|
2016-07-21 10:09:57 +00:00
|
|
|
<hr>
|
2016-07-19 17:03:16 +00:00
|
|
|
<h4>{% trans %}Counters{% endtrans %}</h4>
|
2016-07-17 22:47:56 +00:00
|
|
|
<ul>
|
2016-08-14 02:35:08 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUPS['counter-admin']['name']) or user.is_root %}
|
2016-07-29 11:00:32 +00:00
|
|
|
<h5>{% trans %}General management{% endtrans %}</h5>
|
2016-07-21 18:03:31 +00:00
|
|
|
<li><a href="{{ url('counter:admin_list') }}">{% trans %}General counters management{% endtrans %}</a></li>
|
2016-07-27 18:05:45 +00:00
|
|
|
<li><a href="{{ url('counter:product_list') }}">{% trans %}Products management{% endtrans %}</a></li>
|
2016-09-04 13:49:25 +00:00
|
|
|
<li><a href="{{ url('counter:producttype_list') }}">{% trans %}Product types management{% endtrans %}</a></li>
|
2016-07-21 18:03:31 +00:00
|
|
|
{% endif %}
|
2016-07-19 17:03:16 +00:00
|
|
|
{% for b in settings.SITH_COUNTER_BARS %}
|
2016-07-17 22:47:56 +00:00
|
|
|
{% if user.is_in_group(b[1]+" admin") %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<li><a href="{{ url('counter:details', counter_id=b[0]) }}">{{ b[1] }}</a> -
|
|
|
|
<a href="{{ url('counter:admin', counter_id=b[0]) }}">{% trans %}Edit{% endtrans %}</a></li>
|
2016-07-17 22:47:56 +00:00
|
|
|
{% endif %}
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endfor %}
|
2016-07-17 22:47:56 +00:00
|
|
|
</ul>
|
|
|
|
|
2016-07-21 10:09:57 +00:00
|
|
|
<hr>
|
|
|
|
<h4>{% trans %}Accounting{% endtrans %}</h4>
|
|
|
|
<ul>
|
2016-08-14 02:35:08 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUPS['accounting-admin']['name']) or user.is_root %}
|
2016-07-21 18:03:31 +00:00
|
|
|
<li><a href="{{ url('accounting:bank_list') }}">{% trans %}General accounting{% endtrans %}</a></li>
|
|
|
|
{% endif %}
|
2016-08-24 17:50:22 +00:00
|
|
|
{% for m in user.membership.filter(end_date=None).filter(role__gte=7).all() -%}
|
|
|
|
{%- for b in m.club.bank_accounts.all() %}
|
2016-07-21 10:09:57 +00:00
|
|
|
<li><strong>{% trans %}Bank account: {% endtrans %}</strong>
|
2016-08-24 17:50:22 +00:00
|
|
|
<a href="{{ url('accounting:bank_details', b_account_id=b.id) }}">{{ b }}</a></li>
|
|
|
|
{%- endfor %}
|
|
|
|
{% if m.club.club_account.exists() -%}
|
|
|
|
{% for ca in m.club.club_account.all() %}
|
|
|
|
<li><strong>{% trans %}Club account: {% endtrans %}</strong> <a href="{{ url('accounting:club_details', c_account_id=ca.id) }}">{{ ca }}</a></li>
|
|
|
|
{%- endfor %}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor %}
|
2016-07-21 10:09:57 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h4>{% trans %}Club tools{% endtrans %}</h4>
|
2016-05-09 09:49:01 +00:00
|
|
|
<ul>
|
|
|
|
{% for m in user.membership.filter(end_date=None).all() %}
|
|
|
|
<li><a href="{{ url('club:tools', club_id=m.club.id) }}">{{ m.club }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|