1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-19 05:52:21 +00:00
nk20/templates/wei/weiclub_info.html

72 lines
3.8 KiB
HTML
Raw Normal View History

2020-04-11 22:06:20 +00:00
{% load i18n static pretty_money perms %}
<div class="card bg-light shadow">
<div class="card-header text-center">
2020-04-12 00:07:13 +00:00
<h4>{{ club.name }} </h4>
2020-04-11 22:06:20 +00:00
</div>
<div class="card-top text-center">
<a href="{% url 'member:club_update_pic' club.pk %}">
<img src="{{ club.note.display_image.url }}" class="img-thumbnail mt-2" >
</a>
</div>
<div class="card-body" id="profile_infos">
<dl class="row">
<dt class="col-xl-6">{% trans 'name'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.name }}</dd>
{% if club.require_memberships %}
<dt class="col-xl-6">{% trans 'date start'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.date_start }}</dd>
<dt class="col-xl-6">{% trans 'date end'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.date_end }}</dd>
<dt class="col-xl-6">{% trans 'year'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.year }}</dd>
{% if club.membership_fee_paid == club.membership_fee_unpaid %}
<dt class="col-xl-6">{% trans 'membership fee'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.membership_fee_paid|pretty_money }}</dd>
{% else %}
2020-04-14 01:41:26 +00:00
{% with bde_kfet_fee=club.parent_club.membership_fee_paid|add:club.parent_club.parent_club.membership_fee_paid %}
<dt class="col-xl-6">{% trans 'WEI fee / including BDE and Kfet fee (paid students)'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.membership_fee_paid|pretty_money }} / {{ club.membership_fee_paid|add:bde_kfet_fee|pretty_money }}</dd>
{% endwith %}
2020-04-11 22:06:20 +00:00
2020-04-14 01:41:26 +00:00
{% with bde_kfet_fee=club.parent_club.membership_fee_unpaid|add:club.parent_club.parent_club.membership_fee_unpaid %}
<dt class="col-xl-6">{% trans 'WEI fee / including BDE and Kfet fee (unpaid students)'|capfirst %}</dt>
<dd class="col-xl-6">{{ club.membership_fee_unpaid|pretty_money }} / {{ club.membership_fee_unpaid|add:bde_kfet_fee|pretty_money }}</dd>
{% endwith %}
2020-04-11 22:06:20 +00:00
{% endif %}
{% endif %}
{% if "note.view_note"|has_perm:club.note %}
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
2020-04-13 03:02:16 +00:00
<dd class="col-xl-6">{{ club.note.balance | pretty_money }}</dd>
2020-04-11 22:06:20 +00:00
{% endif %}
2020-04-12 00:07:13 +00:00
{% if "note.change_alias"|has_perm:club.note.alias_set.first %}
<dt class="col-xl-4"><a href="{% url 'member:club_alias' club.pk %}">{% trans 'aliases'|capfirst %}</a></dt>
2020-04-13 03:02:16 +00:00
<dd class="col-xl-8 text-truncate">{{ club.note.alias_set.all|join:", " }}</dd>
2020-04-12 00:07:13 +00:00
{% endif %}
2020-04-11 22:06:20 +00:00
<dt class="col-xl-4">{% trans 'email'|capfirst %}</dt>
<dd class="col-xl-8"><a href="mailto:{{ club.email }}">{{ club.email }}</a></dd>
</dl>
</div>
<div class="card-footer text-center">
{% if can_add_members %}
2020-04-12 01:31:08 +00:00
<a class="btn btn-primary btn-sm my-1" href="{% url 'wei:wei_register' wei_pk=club.pk %}"> {% trans "Register 2A+" %}</a>
2020-04-11 22:06:20 +00:00
{% endif %}
{% if ".change_"|has_perm:club %}
2020-04-12 00:30:48 +00:00
<a class="btn btn-primary btn-sm my-1" href="{% url 'wei:wei_update' pk=club.pk %}"> {% trans "Edit" %}</a>
2020-04-11 22:06:20 +00:00
{% endif %}
2020-04-13 03:02:16 +00:00
{% if True %}
<a class="btn btn-primary btn-sm my-1" href="{% url 'wei:add_bus' pk=club.pk %}"> {% trans "Add bus" %}</a>
{% endif %}
2020-04-12 00:07:13 +00:00
{% url 'wei:wei_detail' club.pk as club_detail_url %}
2020-04-11 22:06:20 +00:00
{%if request.path_info != club_detail_url %}
2020-04-13 03:02:16 +00:00
<a class="btn btn-primary btn-sm my-1" href="{{ club_detail_url }}">{% trans 'View WEI' %}</a>
2020-04-12 00:30:48 +00:00
{% endif %}
</div>
2020-04-11 22:06:20 +00:00
</div>