club_tools.jinja 1.61 KB
Newer Older
1
{% extends "core/base.jinja" %}
Skia's avatar
Skia committed
2

3
{% block content %}
Skia's avatar
Skia committed
4
<h3>{% trans %}Club tools{% endtrans %}</h3>
Skia's avatar
Skia committed
5
<div>
Skia's avatar
Skia committed
6 7 8
    <h4>{% trans %}Communication:{% endtrans %}</h4>
    <ul>
        <li> <a href="{{ url('com:news_new') }}?club={{ object.id }}">{% trans %}Create a news{% endtrans %}</a></li>
Skia's avatar
Skia committed
9
        <li> <a href="{{ url('com:weekmail_article') }}?club={{ object.id }}">{% trans %}Post in the Weekmail{% endtrans %}</a></li>
Skia's avatar
Skia committed
10
    </ul>
11 12
    <h4>{% trans %}Counters:{% endtrans %}</h4>
    <ul>
Skia's avatar
Skia committed
13 14 15 16 17
    {% if object.unix_name == settings.SITH_LAUNDERETTE_MANAGER['unix_name'] %}
    {% for l in Launderette.objects.all() %}
        <li><a href="{{ url('launderette:main_click', launderette_id=l.id) }}">{{ l }}</a></li>
    {% endfor %}
    {% elif object.counters.filter(type="OFFICE")|count > 0 %}
Skia's avatar
Skia committed
18
        {% for c in object.counters.filter(type="OFFICE") %}
19 20 21 22 23
        <li>{{ c }}:
            <a href="{{ url('counter:details', counter_id=c.id) }}">View</a>
            <a href="{{ url('counter:admin', counter_id=c.id) }}">Edit</a>
        </li>
        {% endfor %}
Skia's avatar
Skia committed
24
    {% endif %}
Skia's avatar
Skia committed
25
    </ul>
Skia's avatar
Skia committed
26 27 28 29
    {% if object.club_account.exists() %}
        <h4>{% trans %}Accouting: {% endtrans %}</h4>
        <ul>
        {% for ca in object.club_account.all() %}
30
            <li><a href="{{ url('accounting:club_details', c_account_id=ca.id) }}">{{ ca.get_display_name() }}</a></li>
Skia's avatar
Skia committed
31 32
        {% endfor %}
        </ul>
Skia's avatar
Skia committed
33
    {% endif %}
Skia's avatar
Skia committed
34
    {% if object.unix_name == settings.SITH_LAUNDERETTE_MANAGER['unix_name'] %}
35
    <li><a href="{{ url('launderette:launderette_list') }}">{% trans %}Manage launderettes{% endtrans %}</a></li>
Skia's avatar
Skia committed
36
    {% endif %}
Skia's avatar
Skia committed
37
</div>
Skia's avatar
Skia committed
38 39 40 41
{% endblock %}