mirror of https://gitlab.crans.org/bde/nk20
Use detailed list on user profile
This commit is contained in:
parent
ac78d6a919
commit
c8a0882b31
|
@ -1,19 +1,27 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load static %}
|
{% load i18n static %}
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<h5>Compte n° {{object.pk}}</h5>
|
{% block content %}
|
||||||
<table>
|
<h3>Compte n° {{ object.pk }}</h3>
|
||||||
<tr>
|
|
||||||
<td> <img src="{{ object.note.display_image.url }}" alt="" /> </td>
|
<img src="{{ object.note.display_image.url }}" alt=""/>
|
||||||
</tr>
|
|
||||||
<tr><th> Nom</th><td>{{ object.user.name }}</td></tr>
|
<dl class="row">
|
||||||
<tr><th>Prénom </th><td>{{object.user.first_name}}</td></tr>
|
<dt class="col-6 col-md-3">{% trans 'name'|capfirst %}</dt>
|
||||||
<tr><th>Pseudo</th><td> {{object.user.username}}</td></tr>
|
<dd class="col-6 col-md-3">{{ object.user.name }}</dd>
|
||||||
<tr><th> Aliases</th><td>{{object.user.note.aliases_set.all }}</td></tr>
|
<dt class="col-6 col-md-3">{% trans 'first name'|capfirst %}</dt>
|
||||||
<tr><th>Pseudo</th><td> {{object.user.username}}</td></tr>
|
<dd class="col-6 col-md-3">{{ object.user.first_name }}</dd>
|
||||||
<tr><th>Section</th><td> {{object.section}}</td></tr>
|
<dt class="col-6 col-md-3">{% trans 'username'|capfirst %}</dt>
|
||||||
<tr><th>Adresse</th><td> {{object.address}}</td></tr>
|
<dd class="col-6 col-md-3">{{ object.user.username }}</dd>
|
||||||
<tr><th>Solde</th><td> {{object.user.note.balance}}</td></tr>
|
<dt class="col-6 col-md-3">Aliases</dt>
|
||||||
</table>
|
<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 }}</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<a href="{% url "password_change" %}">{% trans 'Change password' %}</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue