Improve club templates

This commit is contained in:
Skia
2016-09-02 09:23:21 +02:00
parent b2df8fbf18
commit 29f565f514
7 changed files with 94 additions and 39 deletions

View File

@@ -1,18 +1,20 @@
{% extends "core/base.jinja" %}
{% extends "club/club_base.jinja" %}
{% from 'core/macros.jinja' import user_profile_link %}
{% block content %}
{% block club %}
<h2>{% trans %}Club members{% endtrans %}</h2>
<table>
<thead>
<td>{% trans %}User{% endtrans %}</td>
<td>{% trans %}Role{% endtrans %}</td>
<td>{% trans %}Description{% endtrans %}</td>
</thead>
<tbody>
{% for m in club.members.filter(end_date=None).order_by('-role').all() %}
<tr>
<td>{{ user_profile_link(m.user) }}</td>
<td>{{ settings.SITH_CLUB_ROLES[m.role] }}</td>
<td>{{ m.description }}</td>
</tr>
{% endfor %}
</tbody>