mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-10 00:03:24 +00:00
30 lines
952 B
Django/Jinja
30 lines
952 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
{% from 'core/macros.jinja' import user_profile_link %}
|
|
|
|
{% block content %}
|
|
<h2>{% trans %}Club old members{% endtrans %}</h2>
|
|
<table>
|
|
<thead>
|
|
<td>{% trans %}User{% endtrans %}</td>
|
|
<td>{% trans %}Role{% endtrans %}</td>
|
|
<td>{% trans %}Description{% endtrans %}</td>
|
|
<td>{% trans %}From{% endtrans %}</td>
|
|
<td>{% trans %}To{% endtrans %}</td>
|
|
</thead>
|
|
<tbody>
|
|
{% for m in club.members.exclude(end_date=None).order_by('-role', 'description', '-end_date').all() %}
|
|
<tr>
|
|
<td>{{ user_profile_link(m.user) }}</td>
|
|
<td>{{ settings.SITH_CLUB_ROLES[m.role] }}</td>
|
|
<td>{{ m.description }}</td>
|
|
<td>{{ m.start_date }}</td>
|
|
<td>{{ m.end_date }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|
|
|
|
|
|
|