2017-06-12 21:52:59 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% trans %}Edit profile{% endtrans %}
|
2017-06-12 21:52:59 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<h2>{% trans %}Edit profile{% endtrans %}</h2>
|
|
|
|
<p> <a href="{{ url('trombi:user_tools') }}">{% trans %}Back to tools{% endtrans %}</a></p>
|
|
|
|
<form action="" method="post" enctype="multipart/form-data">
|
2017-06-12 21:52:59 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
{{ form.as_p() }}
|
|
|
|
<p><input type="submit" value="{% trans %}Save{% endtrans %}" /></p>
|
2024-07-23 22:16:31 +00:00
|
|
|
</form>
|
|
|
|
<h4>{% trans %}Club{% endtrans %}</h4>
|
|
|
|
<a href="{{ url('trombi:reset_memberships') }}">
|
2017-06-12 21:52:59 +00:00
|
|
|
{% trans %}Reset club memberships in Trombi (delete exising ones, does not impact real club memberships){% endtrans %}
|
2024-07-23 22:16:31 +00:00
|
|
|
</a>
|
|
|
|
<table style="max-width: 80%; margin: auto;">
|
2017-06-12 21:52:59 +00:00
|
|
|
<thead>
|
2024-07-23 22:16:31 +00:00
|
|
|
<tr>
|
|
|
|
<td>{% trans %}Club{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Role{% endtrans %}</td>
|
|
|
|
<td>{% trans %}Dates{% endtrans %}</td>
|
|
|
|
</tr>
|
2017-06-12 21:52:59 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% for m in user.trombi_user.memberships.all() %}
|
2017-06-12 21:52:59 +00:00
|
|
|
<tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
<td>{{ m.club }}</td>
|
|
|
|
<td>{{ m.role }}</td>
|
|
|
|
<td>{{ m.start }} - {{ m.end }}</td>
|
|
|
|
<td>
|
|
|
|
<a href="{{ url('trombi:edit_membership', membership_id=m.id) }}">{% trans %}Edit{% endtrans %}</a>
|
|
|
|
<a href="{{ url('trombi:delete_membership', membership_id=m.id) }}">{% trans %}Delete{% endtrans %}</a>
|
|
|
|
</td>
|
2017-06-12 21:52:59 +00:00
|
|
|
</tr>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endfor %}
|
2017-06-12 21:52:59 +00:00
|
|
|
</tbody>
|
2024-07-23 22:16:31 +00:00
|
|
|
</table>
|
2017-06-12 21:52:59 +00:00
|
|
|
{% endblock %}
|
|
|
|
|