From acd36b69eb3021bfbf16cd3f0a46c1128821b812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Thu, 4 Aug 2016 06:07:46 +0200 Subject: [PATCH] =?UTF-8?q?Utilisation=20des=20propri=C3=A9t=C3=A9s=20d'Ac?= =?UTF-8?q?count?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kfet/templates/kfet/account_read.html | 12 ++++++------ kfet/templates/kfet/account_update.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kfet/templates/kfet/account_read.html b/kfet/templates/kfet/account_read.html index 011ef1d4..3a81a5ec 100644 --- a/kfet/templates/kfet/account_read.html +++ b/kfet/templates/kfet/account_read.html @@ -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 @@

-

Prénom: {{ account.cofprofile.user.first_name }}

-

Nom: {{ account.cofprofile.user.last_name }}

+

Prénom: {{ account.first_name }}

+

Nom: {{ account.last_name }}

{% if perms.kfet.is_team %}

Surnom: {{ account.nickname }}

{% endif %} -

Email: {{ account.cofprofile.user.email }}

-

Département: {{ account.cofprofile.departement }}

+

Email: {{ account.email }}

+

Département: {{ account.departement }}

Promo: {{ account.promo }}

-

Statut COF: {{ account.cofprofile.is_cof }}

+

Statut COF: {{ account.is_cof }}

Compte gelé: {{ account.is_frozen }}

Solde: {{ account.balance }} €

{% if account.balance != account.real_balance %} diff --git a/kfet/templates/kfet/account_update.html b/kfet/templates/kfet/account_update.html index fd3cafb5..0dd23ed1 100644 --- a/kfet/templates/kfet/account_update.html +++ b/kfet/templates/kfet/account_update.html @@ -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 }}