nk20/templates/member/profile_detail.html

30 lines
1.3 KiB
HTML
Raw Normal View History

2019-08-11 22:30:29 +00:00
{% extends "base.html" %}
{% 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>
<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-14 13:16:03 +00:00
<a href="{% url "password_change" %}">{% trans 'Change password' %}</a>
{% render_table history_list %}
2019-08-11 22:30:29 +00:00
{% endblock %}