Utilisation des propriétés d'Account

This commit is contained in:
Aurélien Delobelle 2016-08-04 06:07:46 +02:00
parent 092c3ce5d4
commit acd36b69eb
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{% extends "kfet/base.html" %}
{% block title %}
{% if account.cofprofile.user == request.user %}
{% if account.user == request.user %}
Mes informations
{% else %}
Informations du compte {{ account.trigramme }}
@ -16,15 +16,15 @@
</a>
</p>
<p>Prénom: {{ account.cofprofile.user.first_name }}</p>
<p>Nom: {{ account.cofprofile.user.last_name }}</p>
<p>Prénom: {{ account.first_name }}</p>
<p>Nom: {{ account.last_name }}</p>
{% if perms.kfet.is_team %}
<p>Surnom: {{ account.nickname }}</p>
{% endif %}
<p>Email: {{ account.cofprofile.user.email }}</p>
<p>Département: {{ account.cofprofile.departement }}</p>
<p>Email: {{ account.email }}</p>
<p>Département: {{ account.departement }}</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>Solde: {{ account.balance }} €</p>
{% if account.balance != account.real_balance %}

View file

@ -1,7 +1,7 @@
{% extends "kfet/base.html" %}
{% block title %}
{% if account.cofprofile.user == request.user %}
{% if account.user == request.user %}
Edition de mes informations
{% else %}
Edition des informations du compte {{ account.trigramme }}