Sith/club/templates/club/club_tools.jinja

48 lines
2.0 KiB
Django/Jinja
Raw Normal View History

{% extends "core/base.jinja" %}
2016-05-09 09:49:01 +00:00
{% block content %}
2016-07-19 17:03:16 +00:00
<h3>{% trans %}Club tools{% endtrans %}</h3>
2016-08-24 17:50:22 +00:00
<div>
2016-12-23 17:40:12 +00:00
<h4>{% trans %}Communication:{% endtrans %}</h4>
<ul>
<li> <a href="{{ url('com:news_new') }}?club={{ object.id }}">{% trans %}Create a news{% endtrans %}</a></li>
2017-03-24 13:01:05 +00:00
<li> <a href="{{ url('com:weekmail_article') }}?club={{ object.id }}">{% trans %}Post in the Weekmail{% endtrans %}</a></li>
2017-05-10 20:17:05 +00:00
{% if object.trombi %}
<li> <a href="{{ url('trombi:detail', trombi_id=object.trombi.id) }}">{% trans %}Edit Trombi{% endtrans %}</a></li>
2017-05-09 21:42:01 +00:00
{% else %}
2017-05-10 20:17:05 +00:00
<li> <a href="{{ url('trombi:create', club_id=object.id) }}">{% trans %}New Trombi{% endtrans %}</a></li>
2017-11-01 17:12:33 +00:00
<li> <a href="{{ url('club:poster_list', club_id=object.id) }}">{% trans %}Posters{% endtrans %}</a></li>
2017-05-09 21:42:01 +00:00
{% endif %}
2016-12-23 17:40:12 +00:00
</ul>
<h4>{% trans %}Counters:{% endtrans %}</h4>
<ul>
2016-09-11 17:00:12 +00:00
{% 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 %}
2016-08-24 17:50:22 +00:00
{% for c in object.counters.filter(type="OFFICE") %}
<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 %}
2016-07-19 17:03:16 +00:00
{% endif %}
2016-09-11 17:00:12 +00:00
</ul>
2016-08-24 17:50:22 +00:00
{% if object.club_account.exists() %}
<h4>{% trans %}Accouting: {% endtrans %}</h4>
<ul>
{% for ca in object.club_account.all() %}
<li><a href="{{ url('accounting:club_details', c_account_id=ca.id) }}">{{ ca.get_display_name() }}</a></li>
2016-08-24 17:50:22 +00:00
{% endfor %}
</ul>
2016-07-19 17:03:16 +00:00
{% 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-08-24 17:50:22 +00:00
</div>
2016-05-09 09:49:01 +00:00
{% endblock %}