2016-09-04 17:24:53 +00:00
|
|
|
{% extends "core/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-09-04 17:24:53 +00:00
|
|
|
{% block content %}
|
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>
|
2016-09-21 12:09:16 +00:00
|
|
|
<li><a href="{{ url('rootplace:merge') }}">{% trans %}Merge users{% endtrans %}</a></li>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% endif %}
|
2017-07-21 22:40:51 +00:00
|
|
|
{% if user.can_create_subscription or user.is_root %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<li><a href="{{ url('subscription:subscription') }}">{% trans %}Subscriptions{% endtrans %}</a></li>
|
2017-07-21 22:40:51 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if user.is_board_member or user.is_root %}
|
2017-06-02 13:30:11 +00:00
|
|
|
<li><a href="{{ url('subscription:stats') }}">{% trans %}Subscription stats{% endtrans %}</a></li>
|
2016-10-18 21:36:26 +00:00
|
|
|
<li><a href="{{ url('club:club_new') }}">{% trans %}New club{% endtrans %}</a></li>
|
2016-07-19 17:03:16 +00:00
|
|
|
{% 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-12-10 00:29:56 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_COUNTER_ADMIN_ID) or user.is_root %}
|
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-09-13 00:04:49 +00:00
|
|
|
<li><a href="{{ url('counter:cash_summary_list') }}">{% trans %}Cash register summaries{% endtrans %}</a></li>
|
2016-12-06 22:04:41 +00:00
|
|
|
<li><a href="{{ url('counter:invoices_call') }}">{% trans %}Invoices call{% endtrans %}</a></li>
|
|
|
|
<li><a href="{{ url('counter:eticket_list') }}">{% trans %}Etickets{% 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") %}
|
2017-05-10 21:30:20 +00:00
|
|
|
<li>
|
2016-12-29 10:58:19 +00:00
|
|
|
<a href="{{ url('counter:details', counter_id=b[0]) }}">{{ b[1] }}</a> -
|
2016-09-20 18:38:12 +00:00
|
|
|
<a href="{{ url('counter:admin', counter_id=b[0]) }}">{% trans %}Edit{% endtrans %}</a> -
|
2016-12-29 10:58:19 +00:00
|
|
|
<a href="{{ url('counter:stats', counter_id=b[0]) }}">{% trans %}Stats{% endtrans %}</a> -
|
|
|
|
{% set c = Counter.objects.filter(id=b[0]).first() %}
|
|
|
|
{% if c.stock %}
|
2017-05-10 21:30:20 +00:00
|
|
|
<a href="{{ url('stock:items_list', stock_id=c.stock.id)}}">Stock</a> -
|
2016-12-29 10:58:19 +00:00
|
|
|
<a href="{{ url('stock:shoppinglist_list', stock_id=c.stock.id)}}">{% trans %}Shopping lists{% endtrans %}</a>
|
|
|
|
{% else %}
|
|
|
|
<a href="{{url('stock:new', counter_id=c.id)}}">{% trans %}Create new stock{% endtrans%}</a>
|
|
|
|
{% endif %}
|
|
|
|
</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-12-10 00:29:56 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_ACCOUNTING_ADMIN_ID) or user.is_root %}
|
2016-11-30 01:41:25 +00:00
|
|
|
<li><a href="{{ url('accounting:refound_account') }}">{% trans %}Refound Account{% endtrans %}</a></li>
|
2016-07-21 18:03:31 +00:00
|
|
|
<li><a href="{{ url('accounting:bank_list') }}">{% trans %}General accounting{% endtrans %}</a></li>
|
2016-12-19 20:58:40 +00:00
|
|
|
<li><a href="{{ url('accounting:co_list') }}">{% trans %}Company list{% endtrans %}</a></li>
|
2016-07-21 18:03:31 +00:00
|
|
|
{% endif %}
|
2016-09-15 09:06:51 +00:00
|
|
|
{% for m in user.memberships.filter(end_date=None).filter(role__gte=7).all() -%}
|
2016-08-24 17:50:22 +00:00
|
|
|
{%- 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>
|
|
|
|
|
2016-11-09 08:13:57 +00:00
|
|
|
<hr>
|
|
|
|
<h4>{% trans %}Communication{% endtrans %}</h4>
|
|
|
|
<ul>
|
2016-12-21 01:38:21 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_COM_ADMIN_ID) or user.is_root %}
|
2017-03-24 08:19:15 +00:00
|
|
|
<li><a href="{{ url('com:weekmail_article') }}">{% trans %}Create weekmail article{% endtrans %}</a></li>
|
2017-01-10 16:45:49 +00:00
|
|
|
<li><a href="{{ url('com:weekmail') }}">{% trans %}Weekmail{% endtrans %}</a></li>
|
2017-01-11 00:34:16 +00:00
|
|
|
<li><a href="{{ url('com:weekmail_destinations') }}">{% trans %}Weekmail destinations{% endtrans %}</a></li>
|
2017-03-24 08:19:15 +00:00
|
|
|
<li><a href="{{ url('com:news_new') }}">{% trans %}Create news{% endtrans %}</a></li>
|
2016-12-23 17:40:12 +00:00
|
|
|
<li><a href="{{ url('com:news_admin_list') }}">{% trans %}Moderate news{% endtrans %}</a></li>
|
2016-12-21 01:38:21 +00:00
|
|
|
<li><a href="{{ url('com:index_edit') }}">{% trans %}Edit index page{% endtrans %}</a></li>
|
|
|
|
<li><a href="{{ url('com:alert_edit') }}">{% trans %}Edit alert message{% endtrans %}</a></li>
|
|
|
|
<li><a href="{{ url('com:info_edit') }}">{% trans %}Edit information message{% endtrans %}</a></li>
|
2016-11-09 08:13:57 +00:00
|
|
|
<li><a href="{{ url('core:file_moderation') }}">{% trans %}Moderate files{% endtrans %}</a></li>
|
2017-08-19 14:13:53 +00:00
|
|
|
<li><a href="{{ url('com:mailing_admin') }}">{% trans %}Mailing lists administration{% endtrans %}</a></li>
|
2016-11-19 14:28:21 +00:00
|
|
|
{% endif %}
|
2016-12-10 00:29:56 +00:00
|
|
|
{% if user.is_in_group(settings.SITH_GROUP_SAS_ADMIN_ID) %}
|
2016-11-19 14:28:21 +00:00
|
|
|
<li><a href="{{ url('sas:moderation') }}">{% trans %}Moderate pictures{% endtrans %}</a></li>
|
|
|
|
{% endif %}
|
2016-11-09 08:13:57 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
2016-07-21 10:09:57 +00:00
|
|
|
<hr>
|
|
|
|
<h4>{% trans %}Club tools{% endtrans %}</h4>
|
2016-05-09 09:49:01 +00:00
|
|
|
<ul>
|
2016-09-15 09:06:51 +00:00
|
|
|
{% for m in user.memberships.filter(end_date=None).all() %}
|
2016-05-09 09:49:01 +00:00
|
|
|
<li><a href="{{ url('club:tools', club_id=m.club.id) }}">{{ m.club }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2016-12-19 02:54:57 +00:00
|
|
|
<hr>
|
|
|
|
<h4>{% trans %}Elections{% endtrans %}</h4>
|
|
|
|
<ul>
|
2016-12-25 23:29:39 +00:00
|
|
|
<li><a href="{{ url('election:list') }}">{% trans %}See available elections{% endtrans %}</a></li>
|
2017-06-07 15:33:46 +00:00
|
|
|
<li><a href="{{ url('election:list_archived') }}">{% trans %}See archived elections{% endtrans %}</a></li>
|
2017-02-24 01:59:59 +00:00
|
|
|
{%- if user.is_subscribed -%}
|
2016-12-24 02:36:28 +00:00
|
|
|
<li><a href="{{ url('election:create') }}">{% trans %}Create a new election{% endtrans %}</a></li>
|
|
|
|
{%- endif -%}
|
2016-12-19 02:54:57 +00:00
|
|
|
</ul>
|
2017-05-10 21:30:20 +00:00
|
|
|
<h4>{% trans %}Other tools{% endtrans %}</h4>
|
|
|
|
<ul>
|
2017-05-30 17:29:35 +00:00
|
|
|
<li><a href="{{ url('core:to_markdown') }}">{% trans %}Convert dokuwiki/BBcode syntax to Markdown{% endtrans %}</a></li>
|
2017-05-10 21:30:20 +00:00
|
|
|
<li><a href="{{ url('trombi:user_tools') }}">{% trans %}Trombi tools{% endtrans %}</a></li>
|
|
|
|
</ul>
|
2016-02-01 16:35:55 +00:00
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|