user_clubs.jinja 1.88 KB
Newer Older
1
2
3
4
5
6
7
8
{% extends "core/base.jinja" %}

{% block title %}
	{% trans user_name=profile.get_display_name() %}{{ user_name }}'s club(s){% endtrans %}
{% endblock %}

{% block content %}
<h3>{% trans%}Club(s){% endtrans %}</h3>
9
<br>
10
<h4>{% trans%}Current club(s) :{% endtrans %}</h4>
11
12
13
14
<br>
<table>
    <thead>
    	<tr>
Skia's avatar
Skia committed
15
            <td>{% trans %}Club{% endtrans %}</td>
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	        <td>{% trans %}Role{% endtrans %}</td>
	        <td>{% trans %}Description{% endtrans %}</td>
	        <td>{% trans %}Since{% endtrans %}</td>
    	</tr>
    </thead>
    <tbody>
	    {% for m in profile.memberships.filter(end_date=None).all() %}
        <tr>
            <td><a href="{{ url('club:club_members', club_id=m.club.id) }}">{{ m.club }}</a></td>
            <td>{{ settings.SITH_CLUB_ROLES[m.role] }}</td>
            <td>{{ m.description }}</td>
            <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 %}
        </tr>
    	{% endfor %}
    </tbody>
</table>
35
36
<br>
<h4>{% trans%}Old club(s) :{% endtrans %}</h4>
37
38
39
40
<br>
<table>
    <thead>
    	<tr>
Skia's avatar
Skia committed
41
            <td>{% trans %}Club{% endtrans %}</td>
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
	        <td>{% trans %}Role{% endtrans %}</td>
	        <td>{% trans %}Description{% endtrans %}</td>
	        <td>{% trans %}From{% endtrans %}</td>
	        <td>{% trans %}To{% endtrans %}</td>

    	</tr>
    </thead>
    <tbody>
	    {% for m in profile.memberships.exclude(end_date=None).all() %}
        <tr>
            <td><a href="{{ url('club:club_members', club_id=m.club.id) }}">{{ m.club }}</a></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>
61
62
{% endblock %}