2020-03-25 15:11:44 +00:00
|
|
|
{% load i18n static pretty_money %}
|
|
|
|
|
|
|
|
<div class="card bg-light shadow">
|
2020-03-25 16:25:44 +00:00
|
|
|
<div class="card-header text-center" >
|
2020-08-04 18:04:41 +00:00
|
|
|
<h4> {% trans "Account #" %} {{ user_object.pk }}</h4>
|
2020-03-25 16:25:44 +00:00
|
|
|
</div>
|
2020-03-25 15:11:44 +00:00
|
|
|
<div class="card-top text-center">
|
2020-08-04 18:04:41 +00:00
|
|
|
<a href="{% url 'member:user_update_pic' user_object.pk %}">
|
|
|
|
<img src="{{ user_object.note.display_image.url }}" class="img-thumbnail mt-2" >
|
2020-03-25 15:11:44 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="card-body" id="profile_infos">
|
|
|
|
<dl class="row">
|
|
|
|
<dt class="col-xl-6">{% trans 'name'|capfirst %}, {% trans 'first name' %}</dt>
|
2020-08-04 18:04:41 +00:00
|
|
|
<dd class="col-xl-6">{{ user_object.last_name }} {{ user_object.first_name }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
|
2020-08-04 18:04:41 +00:00
|
|
|
<dd class="col-xl-6">{{ user_object.username }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
|
2020-08-04 18:04:41 +00:00
|
|
|
{% if user_object.pk == user_object.pk %}
|
2020-04-27 18:25:02 +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>
|
|
|
|
{% endif %}
|
2020-03-25 15:11:44 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'section'|capfirst %}</dt>
|
2020-08-04 18:04:41 +00:00
|
|
|
<dd class="col-xl-6">{{ user_object.profile.section }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'address'|capfirst %}</dt>
|
2020-08-04 18:04:41 +00:00
|
|
|
<dd class="col-xl-6">{{ user_object.profile.address }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
|
|
|
|
<dt class="col-xl-6">{% trans 'balance'|capfirst %}</dt>
|
2020-08-04 18:04:41 +00:00
|
|
|
<dd class="col-xl-6">{{ user_object.note.balance | pretty_money }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
|
2020-08-04 18:04:41 +00:00
|
|
|
<dt class="col-xl-6"> <a href="{% url 'member:user_alias' user_object.pk %}">{% trans 'aliases'|capfirst %}</a></dt>
|
|
|
|
<dd class="col-xl-6 text-truncate">{{ user_object.note.alias_set.all|join:", " }}</dd>
|
2020-03-25 15:11:44 +00:00
|
|
|
</dl>
|
|
|
|
|
2020-08-04 18:04:41 +00:00
|
|
|
{% if user_object.pk == user_object.pk %}
|
2020-03-25 15:11:44 +00:00
|
|
|
<a class="small" href="{% url 'member:auth_token' %}">{% trans 'Manage auth token' %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<div class="card-footer text-center">
|
2020-08-04 18:04:41 +00:00
|
|
|
<a class="btn btn-primary btn-sm" href="{% url 'member:user_update_profile' user_object.pk %}">{% trans 'Update Profile' %}</a>
|
|
|
|
{% url 'member:user_detail' user_object.pk as user_profile_url %}
|
2020-04-06 17:51:39 +00:00
|
|
|
{%if request.path_info != user_profile_url %}
|
2020-03-25 15:11:44 +00:00
|
|
|
<a class="btn btn-primary btn-sm" href="{{ user_profile_url }}">{% trans 'View Profile' %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|