2016-09-04 17:24:53 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
2016-08-31 15:18:21 +00:00
|
|
|
{% from 'core/macros.jinja' import user_profile_link %}
|
2016-02-02 15:34:36 +00:00
|
|
|
|
2016-09-04 17:24:53 +00:00
|
|
|
{% block content %}
|
2016-07-19 17:03:16 +00:00
|
|
|
<h2>{% trans %}Club members{% endtrans %}</h2>
|
2016-08-31 15:18:21 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<td>{% trans %}User{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Role{% endtrans %}</td>
|
2016-09-02 07:23:21 +00:00
|
|
|
<td>{% trans %}Description{% endtrans %}</td>
|
2016-09-02 19:21:57 +00:00
|
|
|
<td>{% trans %}Since{% endtrans %}</td>
|
2016-08-31 15:18:21 +00:00
|
|
|
</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>
|
2016-09-02 07:23:21 +00:00
|
|
|
<td>{{ m.description }}</td>
|
2016-09-02 19:21:57 +00:00
|
|
|
<td>{{ m.start_date }}</td>
|
|
|
|
{% if m.can_be_edited_by(user) %}
|
|
|
|
<td><a href="{{ url('club:membership_set_old', membership_id=m.id) }}">{% trans %}Mark as old{% endtrans %}</a></td>
|
|
|
|
{% endif %}
|
2016-08-31 15:18:21 +00:00
|
|
|
</tr>
|
2016-02-04 07:59:03 +00:00
|
|
|
{% endfor %}
|
2016-08-31 15:18:21 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-02-02 15:34:36 +00:00
|
|
|
<form action="{{ url('club:club_members', club_id=club.id) }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p() }}
|
2016-07-19 17:03:16 +00:00
|
|
|
<p><input type="submit" value="{% trans %}Add{% endtrans %}" /></p>
|
2016-02-02 15:34:36 +00:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|