From fa93b40e942820113a07e4bd461c810630154667 Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Fri, 15 Jun 2018 11:00:12 +0200 Subject: [PATCH] Changement des couleurs et prise en ompte de l'activation du solde --- users/templates/users/profil.html | 97 ++++++++++++++++++++++++++----- 1 file changed, 84 insertions(+), 13 deletions(-) diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index 2442f167..2029a526 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -28,19 +28,90 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load logs_extra %} {% block title %}Profil{% endblock %} {% block content %} -

{{ users.surname }} {{users.name}}

-

Vous êtes {% if users.end_adhesion != None %} - un {{ users.class_name | lower}}{% else %} - non adhérent{% endif %} et votre connexion est {% if users.has_access %} -active{% else %}désactivée{% endif %}.

-{% if user_solde %} -

Votre solde est de {{ users.solde }}€. - - - Recharger - -

-{% endif %} + +
+

Bienvenue {{users.name}} {{ users.surname }}

+
+
+
+ {% if solde_activated %} +
+ {% else %} +
+ {% endif %} +
+ {% if users.is_adherent %} +
+
Connécté
+
Fin de connexion: {{user.end_adhesion|date:"d M Y"}}
+
+ {% else %} +
+
Non connécté
+ +
+ {% endif %} +
+
+ {% if solde_activated %} +
+
+
+
+
{{user.solde}}
+ +
+
+
+
+ {% endif %} + {% if solde_activated %} +
+ {% else %} +
+ {% endif %} +
+ {% if nb_machines %} +
+
+ {{nb_machines}} + Machines + +
+ +
+ {% else %} +
+
Aucune machine
+ +
+ {% endif %} +
+
+
+
+ +