From 293ff50809067854cbe2f118bb8a839d942c6389 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 24 May 2016 06:49:39 +0200 Subject: [PATCH] Some more UI changes --- app/rollerverbrauch/static/main.css | 18 ++- app/rollerverbrauch/templates/account.html | 68 +++++----- app/rollerverbrauch/templates/admin.html | 22 ++-- .../templates/deleteVehicleForm.html | 2 +- app/rollerverbrauch/templates/index.html | 2 +- app/rollerverbrauch/templates/layout.html | 3 +- app/rollerverbrauch/templates/pitstops.html | 116 +++++++++--------- app/rollerverbrauch/templates/statistics.html | 32 +++-- 8 files changed, 146 insertions(+), 117 deletions(-) diff --git a/app/rollerverbrauch/static/main.css b/app/rollerverbrauch/static/main.css index 103a79d..6b9476b 100644 --- a/app/rollerverbrauch/static/main.css +++ b/app/rollerverbrauch/static/main.css @@ -1,6 +1,7 @@ body { padding-top: 50px; } + .starter-template { padding-top: 30px; padding-bottom: 60px; @@ -23,11 +24,6 @@ td { color: #a94442; } -.pitstop { -} -//.navbar-fixed-bottom{ -//margin-bottom:20px; -//} .nav-pills > li > a { border: 1px solid; } @@ -42,6 +38,7 @@ h2 { h3 { margin-top: 0px; + text-align: center; } h3:before{ content:"― "; @@ -50,8 +47,19 @@ h3:after{ content:" ―"; } +.tab-content > .active { + border-left: 1px solid #ddd; + border-right: 1px solid #ddd; + border-bottom: 1px solid #ddd; + padding: 1px; + padding-top: 15px; +} +.panel-body > p, .panel-body > ul { + text-align: left; +} +// for small devices @media only screen and (min-device-width : 320px) and (max-device-width : 568px) { diff --git a/app/rollerverbrauch/templates/account.html b/app/rollerverbrauch/templates/account.html index 06a044e..756216e 100644 --- a/app/rollerverbrauch/templates/account.html +++ b/app/rollerverbrauch/templates/account.html @@ -5,7 +5,7 @@
Password
@@ -13,44 +13,46 @@
Vehicles
- - - - - - {% for vehicle in current_user.vehicles %} + - - - + + + - {% endfor %} + {% for vehicle in current_user.vehicles %} + + + + + + {% endfor %} +
- Vehicle - - Info - - Actions -
- {{ vehicle.name }} - - {{ vehicle.pitstops | length }} pitstops - - - edit - - {% if current_user.vehicles | length > 1 %} - - delete - - {% else %} -   - {% endif %} - + Vehicle + + Info + + Actions +
+ {{ vehicle.name }} + + {{ vehicle.pitstops | length }} pitstops + + + edit + + {% if current_user.vehicles | length > 1 %} + + delete + + {% else %} +   + {% endif %} +
{% endblock %} diff --git a/app/rollerverbrauch/templates/admin.html b/app/rollerverbrauch/templates/admin.html index d57f4da..8b25d30 100644 --- a/app/rollerverbrauch/templates/admin.html +++ b/app/rollerverbrauch/templates/admin.html @@ -1,12 +1,18 @@ {% extends "layout.html" %} {% block body %} -

Admin

- We have {{ data.users|length }} users so far: - - Login +
+
+
+
+

Admin

+ We have {{ data.users|length }} users so far: +
    + {% for user in data.users %} +
  • {{user.email}}
  • + {% endfor %} +
+
+
+
{% endblock %} diff --git a/app/rollerverbrauch/templates/deleteVehicleForm.html b/app/rollerverbrauch/templates/deleteVehicleForm.html index 8e14d91..c058771 100644 --- a/app/rollerverbrauch/templates/deleteVehicleForm.html +++ b/app/rollerverbrauch/templates/deleteVehicleForm.html @@ -5,7 +5,7 @@
-

Delete vehicle '{{vehicle.name}}'

+

Delete vehicle '{{vehicle.name}}'?

{{ form.hidden_tag() }} {{ render_field_with_errors(form.submit) }} diff --git a/app/rollerverbrauch/templates/index.html b/app/rollerverbrauch/templates/index.html index e45181f..162c066 100644 --- a/app/rollerverbrauch/templates/index.html +++ b/app/rollerverbrauch/templates/index.html @@ -8,7 +8,7 @@
-
+

Join the pitstop community!

There are already {{ data.users}} members with {{ data.vehicles }} vehicles who have logged {{ data.pitstops }} pitstops fuelling {{ data.litres }}l for {{ data.kilometers }}km.

diff --git a/app/rollerverbrauch/templates/layout.html b/app/rollerverbrauch/templates/layout.html index 900e588..60e5ebe 100644 --- a/app/rollerverbrauch/templates/layout.html +++ b/app/rollerverbrauch/templates/layout.html @@ -176,7 +176,7 @@ {% endblock %}
- +{# +#} diff --git a/app/rollerverbrauch/templates/pitstops.html b/app/rollerverbrauch/templates/pitstops.html index 0088269..043485e 100644 --- a/app/rollerverbrauch/templates/pitstops.html +++ b/app/rollerverbrauch/templates/pitstops.html @@ -1,4 +1,4 @@ -{% extends "layout.html" %} + {% extends "layout.html" %} {% block body %}
diff --git a/app/rollerverbrauch/templates/statistics.html b/app/rollerverbrauch/templates/statistics.html index 66a18db..c1d5aeb 100644 --- a/app/rollerverbrauch/templates/statistics.html +++ b/app/rollerverbrauch/templates/statistics.html @@ -61,14 +61,28 @@
-
+
+ {% if vehicle.pitstop_count > 1 %} +
+ + {% else %} + + {% endif %} +
+
{% if vehicle.pitstop_count > 0 %}
{% else %} - not enough data. + {% endif %}
@@ -78,17 +92,9 @@ {{ chartScript('odometerChartDiv'+vehicle.id|str, vehicle.odometers, 'km') }} {% else %} - not enough data. - {% endif %} -
-
- {% if vehicle.pitstop_count > 1 %} -
- - {% else %} - not enough data. + {% endif %}