Utilisation des propriétés d'Account
This commit is contained in:
parent
092c3ce5d4
commit
acd36b69eb
2 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
{% extends "kfet/base.html" %}
|
{% extends "kfet/base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if account.cofprofile.user == request.user %}
|
{% if account.user == request.user %}
|
||||||
Mes informations
|
Mes informations
|
||||||
{% else %}
|
{% else %}
|
||||||
Informations du compte {{ account.trigramme }}
|
Informations du compte {{ account.trigramme }}
|
||||||
|
@ -16,15 +16,15 @@
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>Prénom: {{ account.cofprofile.user.first_name }}</p>
|
<p>Prénom: {{ account.first_name }}</p>
|
||||||
<p>Nom: {{ account.cofprofile.user.last_name }}</p>
|
<p>Nom: {{ account.last_name }}</p>
|
||||||
{% if perms.kfet.is_team %}
|
{% if perms.kfet.is_team %}
|
||||||
<p>Surnom: {{ account.nickname }}</p>
|
<p>Surnom: {{ account.nickname }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p>Email: {{ account.cofprofile.user.email }}</p>
|
<p>Email: {{ account.email }}</p>
|
||||||
<p>Département: {{ account.cofprofile.departement }}</p>
|
<p>Département: {{ account.departement }}</p>
|
||||||
<p>Promo: {{ account.promo }}</p>
|
<p>Promo: {{ account.promo }}</p>
|
||||||
<p>Statut COF: {{ account.cofprofile.is_cof }}</p>
|
<p>Statut COF: {{ account.is_cof }}</p>
|
||||||
<p>Compte gelé: {{ account.is_frozen }}</p>
|
<p>Compte gelé: {{ account.is_frozen }}</p>
|
||||||
<p>Solde: {{ account.balance }} €</p>
|
<p>Solde: {{ account.balance }} €</p>
|
||||||
{% if account.balance != account.real_balance %}
|
{% if account.balance != account.real_balance %}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "kfet/base.html" %}
|
{% extends "kfet/base.html" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if account.cofprofile.user == request.user %}
|
{% if account.user == request.user %}
|
||||||
Edition de mes informations
|
Edition de mes informations
|
||||||
{% else %}
|
{% else %}
|
||||||
Edition des informations du compte {{ account.trigramme }}
|
Edition des informations du compte {{ account.trigramme }}
|
||||||
|
|
Loading…
Reference in a new issue