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 %}
|
2019-08-14 13:16:03 +00:00
|
|
|
<h3>Compte n° {{ object.pk }}</h3>
|
|
|
|
|
|
|
|
<img src="{{ object.note.display_image.url }}" alt=""/>
|
|
|
|
|
|
|
|
<dl class="row">
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'name'|capfirst %}</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.user.name }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'first name'|capfirst %}</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.user.first_name }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'username'|capfirst %}</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.user.username }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">Aliases</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.user.note.aliases_set.all }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'section'|capfirst %}</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.section }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'address'|capfirst %}</dt>
|
|
|
|
<dd class="col-6 col-md-3">{{ object.address }}</dd>
|
|
|
|
<dt class="col-6 col-md-3">{% trans 'balance'|capfirst %}</dt>
|
2019-08-14 14:02:43 +00:00
|
|
|
<dd class="col-6 col-md-3">{{ object.user.note.balance | pretty_money }}</dd>
|
2019-08-14 13:16:03 +00:00
|
|
|
</dl>
|
2019-08-11 22:30:29 +00:00
|
|
|
|
2019-08-15 21:11:16 +00:00
|
|
|
<a class="btn btn-primary" href="{% url 'password_change' %}">{% trans 'Change password' %}</a>
|
2019-08-14 14:42:05 +00:00
|
|
|
|
2019-08-15 21:11:16 +00:00
|
|
|
<div class="accordion" id="accordionExample">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header" id="headingOne">
|
|
|
|
<h5 class="mb-0">
|
|
|
|
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
|
|
|
|
<i class="fa fa-users"></i> {% trans "View my memberships" %}
|
|
|
|
</button>
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="collapseOne" class="collapse show" aria-labelledby="headingOne" data-parent="#accordionExample">
|
|
|
|
<div class="card-body">
|
|
|
|
{% render_table club_list %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header" id="headingTwo">
|
|
|
|
<h5 class="mb-0">
|
|
|
|
<button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
|
|
|
|
<i class="fa fa-euro"></i> Historique des transactions
|
|
|
|
</button>
|
|
|
|
</h5>
|
|
|
|
</div>
|
|
|
|
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionExample">
|
|
|
|
<div class="card-body">
|
|
|
|
{% render_table history_list %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|