From 9e7edd9902d8f04d4eea2598161b3e6f3b639c06 Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Sun, 10 Jun 2018 21:32:41 +0200 Subject: [PATCH] debut de refonte de la page profil --- static/css/base.css | 37 ++++++++++++++ users/templates/users/profil.html | 85 ++++++++++++++++++++++++------- 2 files changed, 105 insertions(+), 17 deletions(-) diff --git a/static/css/base.css b/static/css/base.css index b6a7ae26..814a5f72 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -91,3 +91,40 @@ footer a { } .row.content {height:auto;} } + +/* style for the user page */ + +.dashboard_container{ +margin-top: 30px; +margin-bottom: 20px; +} + + +.panel-heading.dashboard{ + text-align: center; +} + +.panel-body.dashboard{ + text-align: center; +} +#grad_red { + background: red; /* For browsers that do not support gradients */ + background: linear-gradient(#ff6363, #fefefe); /* Standard syntax (must be last) */ +} + +#grad_green { + background: green; /* For browsers that do not support gradients */ + background: linear-gradient(#C8DD58,#4FB64A); /* Standard syntax (must be last) */ +} + +#grad_grey { + background: gray; /* For browsers that do not support gradients */ + background: linear-gradient(#d4d4ff, #fefefe); /* Standard syntax (must be last) */ +} + +#grad_machines{ + background: green; + background: linear-gradient(#c266e0,#fefefe) +} + + diff --git a/users/templates/users/profil.html b/users/templates/users/profil.html index abba61a2..f1c9331b 100644 --- a/users/templates/users/profil.html +++ b/users/templates/users/profil.html @@ -27,21 +27,72 @@ with this program; if not, write to the Free Software Foundation, Inc., {% load acl %} {% 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 {{ user.solde }}€. -{% if allow_online_payment %} - - - Recharger - -{% endif %} -

-{% endif %} +
+

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

+
+
+
+
+
+ {% if users.is_adherent %} +
+
Adhérent
+
Fin d'adhésion: {{user.end_adhesion}}
+ {% else %} +
+
Non adhérent
+ + {% endif %} +
+
+
+
+
+
+
+
{{user.solde}}
+ +
+
+
+
+
+
+ {% if nb_machines %} +
+
+ {{nb_machines}} + Machines + +
+ {% else %} +
+
Aucune machine
+
+ {% endif %} + +
+
+
+
+
+ +
@@ -50,7 +101,7 @@ non adhérent{% endif %} et votre connexion est {% if users.has_access %} Informations détaillées
-