2019-08-11 22:30:29 +00:00
|
|
|
{% extends "base.html" %}
|
2019-08-14 14:42:05 +00:00
|
|
|
{% load i18n static pretty_money django_tables2 %}
|
2019-08-14 13:16:03 +00:00
|
|
|
|
2019-08-11 22:30:29 +00:00
|
|
|
{% block content %}
|
2020-02-21 10:53:37 +00:00
|
|
|
<div class="row mt-4">
|
2020-02-21 11:08:36 +00:00
|
|
|
<div class="col-md-3 mb-4">
|
2020-02-21 12:50:35 +00:00
|
|
|
<div class="card bg-light shadow">
|
2020-03-03 13:24:07 +00:00
|
|
|
<div class="card-top text-center">
|
|
|
|
<img src="{{ object.note.display_image.url }}" class="img-thumbnail mt-2" >
|
|
|
|
</div>
|
2020-02-21 11:08:36 +00:00
|
|
|
<div class="card-body">
|
|
|
|
<dl class="row">
|
|
|
|
<dt class="col-xl-6">{% trans 'name'|capfirst %}, {% trans 'first name' %}</dt>
|
2020-02-25 21:55:27 +00:00
|
|
|
<dd class="col-xl-6">{{ object.last_name }} {{ object.first_name }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
2020-02-27 19:56:06 +00:00
|
|
|
<dd class="col-xl-6">{{ object.username }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
|
|
|
|
<dd class="col-xl-6">
|
|
|
|
<a class="small" href="{% url 'password_change' %}">
|
|
|
|
{% trans 'Change password' %}
|
|
|
|
</a>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'section'|capfirst %}</dt>
|
2020-02-25 21:55:27 +00:00
|
|
|
<dd class="col-xl-6">{{ object.profile.section }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'address'|capfirst %}</dt>
|
2020-02-25 21:55:27 +00:00
|
|
|
<dd class="col-xl-6">{{ object.profile.address }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
|
2020-02-25 21:55:27 +00:00
|
|
|
<dd class="col-xl-6">{{ object.note.balance | pretty_money }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
|
2020-02-28 12:37:31 +00:00
|
|
|
<dt class="col-xl-6"> <a href="{% url 'member:user_alias' object.pk %}">{% trans 'aliases'|capfirst %}</a></dt>
|
2020-03-01 16:36:49 +00:00
|
|
|
<dd class="col-xl-6 text-truncate">{{ object.note.alias_set.all|join:", " }}</dd>
|
2020-02-21 11:08:36 +00:00
|
|
|
</dl>
|
|
|
|
|
2020-02-25 21:55:27 +00:00
|
|
|
{% if object.pk == user.pk %}
|
2020-02-21 11:08:36 +00:00
|
|
|
<a class="small" href="{% url 'member:auth_token' %}">{% trans 'Manage auth token' %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2020-03-01 16:36:49 +00:00
|
|
|
<div class="card-footer text-center">
|
2020-02-21 11:08:36 +00:00
|
|
|
<a class="btn btn-primary btn-sm" href="{% url 'member:user_update_profile' object.pk %}">{% trans 'Update Profile' %}</a>
|
2020-03-01 16:36:49 +00:00
|
|
|
{% url 'member:user_detail' object.pk as user_profile_url %}
|
|
|
|
{%if request.get_full_path != user_profile_url %}
|
|
|
|
<a class="btn btn-primary btn-sm" href="{{ user_profile_url }}">{% trans 'View Profile' %}</a>
|
|
|
|
{% endif %}
|
2020-02-21 11:08:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
2020-02-21 10:55:44 +00:00
|
|
|
<div class="col-md-9">
|
2020-03-01 16:36:49 +00:00
|
|
|
{% block profile_content %}
|
2020-02-21 12:50:35 +00:00
|
|
|
<div class="accordion shadow" id="accordionProfile">
|
2020-02-21 10:53:37 +00:00
|
|
|
<div class="card">
|
2020-02-21 11:29:11 +00:00
|
|
|
<div class="card-header position-relative" id="clubListHeading">
|
|
|
|
<a class="btn btn-link stretched-link font-weight-bold"
|
|
|
|
data-toggle="collapse" data-target="#clubListCollapse"
|
|
|
|
aria-expanded="true" aria-controls="clubListCollapse">
|
|
|
|
<i class="fa fa-users"></i> {% trans "View my memberships" %}
|
|
|
|
</a>
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
2020-02-21 20:33:49 +00:00
|
|
|
<div id="clubListCollapse" class="collapse show" style="overflow:auto hidden" aria-labelledby="clubListHeading" data-parent="#accordionProfile">
|
2020-02-21 11:29:11 +00:00
|
|
|
{% render_table club_list %}
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-15 21:11:16 +00:00
|
|
|
|
2020-02-21 10:53:37 +00:00
|
|
|
<div class="card">
|
2020-02-21 11:29:11 +00:00
|
|
|
<div class="card-header position-relative" id="historyListHeading">
|
|
|
|
<a class="btn btn-link stretched-link collapsed font-weight-bold"
|
|
|
|
data-toggle="collapse" data-target="#historyListCollapse"
|
|
|
|
aria-expanded="false" aria-controls="historyListCollapse">
|
2020-02-27 16:49:57 +00:00
|
|
|
<i class="fa fa-euro"></i> {% trans "Transaction history" %}
|
2020-02-21 11:29:11 +00:00
|
|
|
</a>
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
2020-02-21 20:33:49 +00:00
|
|
|
<div id="historyListCollapse" class="collapse" style="overflow:auto hidden" aria-labelledby="historyListHeading" data-parent="#accordionProfile">
|
2020-02-21 11:29:11 +00:00
|
|
|
{% render_table history_list %}
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-01 16:36:49 +00:00
|
|
|
{% endblock %}
|
2020-02-21 10:53:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|