Sith/club/templates/club/club_tools.jinja

29 lines
973 B
Plaintext
Raw Normal View History

2016-05-09 09:49:01 +00:00
{% extends "core/base.jinja" %}
{% block content %}
2016-07-19 17:03:16 +00:00
<h3>{% trans %}Club tools{% endtrans %}</h3>
<p><a href="{{ url('club:club_view', club_id=object.id) }}">Back to club</a></p>
<ul>
{% if object.counters.all()|count > 0 %}
<h4>{% trans %}Counters:{% endtrans %}</h4>
<ul>
{% for c in object.counters.all() %}
<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 %}
</ul>
2016-07-19 17:03:16 +00:00
{% endif %}
{% if object.club_account %}
<li>Accouting: <a href="{{ url('accounting:club_details', c_account_id=object.club_account.id) }}">{{ object }}</a></li>
{% endif %}
2016-08-13 14:08:02 +00:00
{% if object.unix_name == settings.SITH_LAUNDERETTE_MANAGER['unix_name'] %}
<li><a href="{{ url('launderette:launderette_list') }}">{% trans %}Manage launderettes{% endtrans %}</a></li>
2016-08-13 14:08:02 +00:00
{% endif %}
2016-07-19 17:03:16 +00:00
</ul>
2016-05-09 09:49:01 +00:00
{% endblock %}