From e26668e5eb6e3a412e0f56c1ffbf55b13b3014b5 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Thu, 6 Apr 2017 21:17:47 -0300 Subject: [PATCH 1/3] Add tabs to account_read --- kfet/templates/kfet/account_read.html | 75 +++++++++++++-------------- 1 file changed, 37 insertions(+), 38 deletions(-) diff --git a/kfet/templates/kfet/account_read.html b/kfet/templates/kfet/account_read.html index 3c2ccbcd..e55c18b2 100644 --- a/kfet/templates/kfet/account_read.html +++ b/kfet/templates/kfet/account_read.html @@ -56,45 +56,44 @@ $(document).ready(function() {
{% include "kfet/base_messages.html" %}
- {% if addcosts %} -
-

Gagné des majorations

-
-
    - {% for addcost in addcosts %} -
  • {{ addcost.date|date:'l j F' }}: +{{ addcost.sum_addcosts }}€
  • - {% endfor %} -
-
-
- {% endif %} - {% if account.user == request.user %} -
-

Statistiques

-
-
-
-

Ma balance

-
-
-
-
-
-
-
-

Ma consommation

-
-
-
-
-
- {% endif %}
-

Historique

-
-
-
-
+
+ {% if account.user == request.user %} + +
+
+

Statistiques

+
+

Ma balance

+
+

Ma consommation

+
+
+
+
+ {% endif %} + {% if addcosts %} +

Gagné des majorations

+
+
    + {% for addcost in addcosts %} +
  • {{ addcost.date|date:'l j F' }}: +{{ addcost.sum_addcosts }}€
  • + {% endfor %} +
+
+ {% endif %} +

Historique

+
+ {% if account.user == request.user %} +
+
+ {% endif %} +
+
+ From 052e7b2b6e1e69dc500eb147b366fe259d5dde1d Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 7 Apr 2017 12:17:36 -0300 Subject: [PATCH 2/3] Move navigation to content-left --- kfet/static/kfet/css/index.css | 8 ++++++++ kfet/templates/kfet/account_read.html | 4 ---- kfet/templates/kfet/left_account.html | 6 ++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index f21fdaba..103b74b7 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -86,6 +86,14 @@ textarea { color:#FFF; } +.buttons .nav-pills > li > a { + border-radius:0; +} + +.buttons .nav-pills > li.active > a { + background-color:rgba(200,16,46,0.9); +} + .row-page-header { background-color:rgba(200,16,46,1); color:#FFF; diff --git a/kfet/templates/kfet/account_read.html b/kfet/templates/kfet/account_read.html index e55c18b2..1af7f277 100644 --- a/kfet/templates/kfet/account_read.html +++ b/kfet/templates/kfet/account_read.html @@ -59,10 +59,6 @@ $(document).ready(function() {
{% if account.user == request.user %} -

Statistiques

diff --git a/kfet/templates/kfet/left_account.html b/kfet/templates/kfet/left_account.html index 19352728..06c3da8e 100644 --- a/kfet/templates/kfet/left_account.html +++ b/kfet/templates/kfet/left_account.html @@ -40,4 +40,10 @@ Modifier Recharger par CB + {% if account.user == request.user %} + + {% endif %}
From 4a6bfd5e3de6cae1c46bf4466708a799f4563d5d Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 7 Apr 2017 12:58:03 -0300 Subject: [PATCH 3/3] Better button distinction --- kfet/static/kfet/css/index.css | 2 ++ kfet/templates/kfet/left_account.html | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kfet/static/kfet/css/index.css b/kfet/static/kfet/css/index.css index 103b74b7..0244a57b 100644 --- a/kfet/static/kfet/css/index.css +++ b/kfet/static/kfet/css/index.css @@ -88,10 +88,12 @@ textarea { .buttons .nav-pills > li > a { border-radius:0; + border:1px solid rgba(200,16,46,0.9); } .buttons .nav-pills > li.active > a { background-color:rgba(200,16,46,0.9); + background-clip:padding-box; } .row-page-header { diff --git a/kfet/templates/kfet/left_account.html b/kfet/templates/kfet/left_account.html index 06c3da8e..5607cbc2 100644 --- a/kfet/templates/kfet/left_account.html +++ b/kfet/templates/kfet/left_account.html @@ -36,14 +36,14 @@
- - Modifier - - Recharger par CB {% if account.user == request.user %} {% endif %} + + Modifier + + Recharger par CB