2020-04-11 22:06:20 +00:00
|
|
|
|
{% load render_table from django_tables2 %}
|
|
|
|
|
{% load i18n %}
|
2020-08-03 16:49:15 +00:00
|
|
|
|
{% load perms %}
|
2020-04-12 00:30:48 +00:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header text-center">
|
|
|
|
|
<h4>WEI</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<p>LE WEI, c'est cool !</p>
|
|
|
|
|
</div>
|
2020-04-18 01:27:12 +00:00
|
|
|
|
|
|
|
|
|
{% if club.is_current_wei %}
|
|
|
|
|
<div class="card-footer text-center">
|
|
|
|
|
{% if not my_registration %}
|
2020-04-18 01:55:30 +00:00
|
|
|
|
{% if not not_first_year %}
|
|
|
|
|
<a href="{% url "wei:wei_register_1A_myself" wei_pk=club.pk %}"><button class="btn btn-success">{% trans "Register to the WEI! – 1A" %}</button></a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
<a href="{% url "wei:wei_register_2A_myself" wei_pk=club.pk %}"><button class="btn btn-success">{% trans "Register to the WEI! – 2A+" %}</button></a>
|
2020-04-20 22:07:00 +00:00
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{% url "wei:wei_update_registration" pk=my_registration.pk %}"><button class="btn btn-warning">{% trans "Update my registration" %}</button></a>
|
2020-04-18 01:27:12 +00:00
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2020-04-12 00:30:48 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
2020-04-12 02:29:44 +00:00
|
|
|
|
<hr>
|
|
|
|
|
|
2020-04-13 04:01:27 +00:00
|
|
|
|
{% if buses.data %}
|
2020-04-13 03:02:16 +00:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="clubListHeading">
|
2020-08-01 13:35:45 +00:00
|
|
|
|
<a class="font-weight-bold">
|
2020-04-13 03:02:16 +00:00
|
|
|
|
<i class="fa fa-bus"></i> {% trans "Buses" %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% render_table buses %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2020-04-12 00:07:13 +00:00
|
|
|
|
{% if member_list.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="clubListHeading">
|
2020-08-01 13:35:45 +00:00
|
|
|
|
<a class="stretched-link font-weight-bold" href="{% url "wei:wei_memberships" pk=club.pk %}">
|
2020-04-21 15:49:06 +00:00
|
|
|
|
<i class="fa fa-users"></i> {% trans "Members of the WEI" %}
|
2020-04-12 00:07:13 +00:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2020-04-11 22:06:20 +00:00
|
|
|
|
{% render_table member_list %}
|
2020-04-12 00:07:13 +00:00
|
|
|
|
</div>
|
2020-04-11 22:06:20 +00:00
|
|
|
|
|
2020-04-12 00:07:13 +00:00
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
2020-04-11 22:06:20 +00:00
|
|
|
|
|
2020-04-12 00:07:13 +00:00
|
|
|
|
{% if history_list.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="historyListHeading">
|
2020-08-03 16:49:15 +00:00
|
|
|
|
<a class="stretched-link font-weight-bold" {% if "note.view_note"|has_perm:club.note %} href="{% url 'note:transactions' pk=club.note.pk %}" {% endif %}>
|
2020-04-12 00:07:13 +00:00
|
|
|
|
<i class="fa fa-euro"></i> {% trans "Transaction history" %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2020-04-11 22:06:20 +00:00
|
|
|
|
<div id="history_list">
|
|
|
|
|
{% render_table history_list %}
|
|
|
|
|
</div>
|
2020-04-12 00:07:13 +00:00
|
|
|
|
</div>
|
2020-04-12 02:29:44 +00:00
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if pre_registrations.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="historyListHeading">
|
2020-08-01 13:35:45 +00:00
|
|
|
|
<a class="stretched-link font-weight-bold" href="{% url 'wei:wei_registrations' pk=club.pk %}">
|
2020-04-12 02:29:44 +00:00
|
|
|
|
<i class="fa fa-user-plus"></i> {% trans "Unvalidated registrations" %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="history_list">
|
|
|
|
|
{% render_table pre_registrations %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|