2020-04-12 00:06:20 +02:00
|
|
|
|
{% load render_table from django_tables2 %}
|
|
|
|
|
{% load i18n %}
|
2020-08-03 18:49:15 +02:00
|
|
|
|
{% load perms %}
|
2020-04-12 02:30:48 +02: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 03:27:12 +02:00
|
|
|
|
|
|
|
|
|
{% if club.is_current_wei %}
|
|
|
|
|
<div class="card-footer text-center">
|
|
|
|
|
{% if not my_registration %}
|
2020-04-18 03:55:30 +02: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-21 00:07:00 +02: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 03:27:12 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2020-04-12 02:30:48 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
2020-04-12 04:29:44 +02:00
|
|
|
|
<hr>
|
|
|
|
|
|
2020-04-13 06:01:27 +02:00
|
|
|
|
{% if buses.data %}
|
2020-04-13 05:02:16 +02:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="clubListHeading">
|
2020-08-01 15:35:45 +02:00
|
|
|
|
<a class="font-weight-bold">
|
2020-04-13 05:02:16 +02:00
|
|
|
|
<i class="fa fa-bus"></i> {% trans "Buses" %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{% render_table buses %}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2020-04-12 02:07:13 +02:00
|
|
|
|
{% if member_list.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="clubListHeading">
|
2020-08-01 15:35:45 +02:00
|
|
|
|
<a class="stretched-link font-weight-bold" href="{% url "wei:wei_memberships" pk=club.pk %}">
|
2020-04-21 17:49:06 +02:00
|
|
|
|
<i class="fa fa-users"></i> {% trans "Members of the WEI" %}
|
2020-04-12 02:07:13 +02:00
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2020-04-12 00:06:20 +02:00
|
|
|
|
{% render_table member_list %}
|
2020-04-12 02:07:13 +02:00
|
|
|
|
</div>
|
2020-04-12 00:06:20 +02:00
|
|
|
|
|
2020-04-12 02:07:13 +02:00
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
2020-04-12 00:06:20 +02:00
|
|
|
|
|
2020-04-12 02:07:13 +02:00
|
|
|
|
{% if history_list.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="historyListHeading">
|
2020-08-03 18:49:15 +02: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 02:07:13 +02:00
|
|
|
|
<i class="fa fa-euro"></i> {% trans "Transaction history" %}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2020-04-12 00:06:20 +02:00
|
|
|
|
<div id="history_list">
|
|
|
|
|
{% render_table history_list %}
|
|
|
|
|
</div>
|
2020-04-12 02:07:13 +02:00
|
|
|
|
</div>
|
2020-04-12 04:29:44 +02:00
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if pre_registrations.data %}
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header position-relative" id="historyListHeading">
|
2020-08-01 15:35:45 +02:00
|
|
|
|
<a class="stretched-link font-weight-bold" href="{% url 'wei:wei_registrations' pk=club.pk %}">
|
2020-04-12 04:29:44 +02: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 %}
|