From 873a28aa2836de74f3ceb630f058117ba141c5fc Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 22 May 2016 11:47:46 +0200 Subject: [PATCH] ui redesign --- app/rollerverbrauch/static/main.css | 44 ++++++++++++++++++- app/rollerverbrauch/templates/account.html | 2 +- .../templates/createVehicleForm.html | 22 ++++++---- .../templates/deleteVehicleForm.html | 19 +++++--- .../templates/editVehicleForm.html | 20 ++++++--- app/rollerverbrauch/templates/index.html | 20 ++------- app/rollerverbrauch/templates/layout.html | 37 +++++++++++++++- .../templates/newPitStopForm.html | 37 +++++++++------- .../templates/security/change_password.html | 23 ++++++---- .../templates/security/forgot_password.html | 20 ++++++--- .../templates/security/login_user.html | 19 +++----- .../templates/security/register_user.html | 28 +++++++----- .../templates/selectVehice.html | 21 ++++++--- app/rollerverbrauch/templates/statistics.html | 14 +++--- 14 files changed, 218 insertions(+), 108 deletions(-) diff --git a/app/rollerverbrauch/static/main.css b/app/rollerverbrauch/static/main.css index 7626b33..103a79d 100644 --- a/app/rollerverbrauch/static/main.css +++ b/app/rollerverbrauch/static/main.css @@ -2,7 +2,8 @@ body { padding-top: 50px; } .starter-template { - padding: 40px 15px; + padding-top: 30px; + padding-bottom: 60px; text-align: center; } @@ -24,7 +25,46 @@ td { .pitstop { } - +//.navbar-fixed-bottom{ +//margin-bottom:20px; +//} .nav-pills > li > a { border: 1px solid; +} + +h1 { + margin-top: 0px; +} + +h2 { + margin-top: 0px; +} + +h3 { + margin-top: 0px; +} +h3:before{ + content:"― "; +} +h3:after{ + content:" ―"; +} + + + +@media only screen +and (min-device-width : 320px) +and (max-device-width : 568px) { + h3:before{ + content:""; + } + h3:after{ + content:""; + } + #charts_tabs { + display:none; + } + #charts_tabs-content { + display:none; + } } \ No newline at end of file diff --git a/app/rollerverbrauch/templates/account.html b/app/rollerverbrauch/templates/account.html index 8cec4de..06a044e 100644 --- a/app/rollerverbrauch/templates/account.html +++ b/app/rollerverbrauch/templates/account.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block body %} -

Account management for {{current_user.email}}

+

Account management for {{current_user.email}}

Password
diff --git a/app/rollerverbrauch/templates/createVehicleForm.html b/app/rollerverbrauch/templates/createVehicleForm.html index 4ea3b84..2dce35b 100644 --- a/app/rollerverbrauch/templates/createVehicleForm.html +++ b/app/rollerverbrauch/templates/createVehicleForm.html @@ -1,12 +1,18 @@ {% extends "layout.html" %} {% block body %} -

Create vehicle

-
- {{ form.hidden_tag() }} - {{ render_field_with_errors(form.name) }} - {{ render_field_with_errors(form.submit) }} -
- - +
+
+
+
+

Create vehicle

+
+ {{ form.hidden_tag() }} + {{ render_field_with_errors(form.name) }} + {{ render_field_with_errors(form.submit) }} +
+
+
+
+
{% endblock %} diff --git a/app/rollerverbrauch/templates/deleteVehicleForm.html b/app/rollerverbrauch/templates/deleteVehicleForm.html index 5e957c3..8e14d91 100644 --- a/app/rollerverbrauch/templates/deleteVehicleForm.html +++ b/app/rollerverbrauch/templates/deleteVehicleForm.html @@ -1,11 +1,18 @@ {% extends "layout.html" %} {% block body %} -

Delete vehicle '{{vehicle.name}}'

-
- {{ form.hidden_tag() }} - {{ render_field_with_errors(form.submit) }} -
- +
+
+
+
+

Delete vehicle '{{vehicle.name}}'

+
+ {{ form.hidden_tag() }} + {{ render_field_with_errors(form.submit) }} +
+
+
+
+
{% endblock %} diff --git a/app/rollerverbrauch/templates/editVehicleForm.html b/app/rollerverbrauch/templates/editVehicleForm.html index 627a24f..8d2827f 100644 --- a/app/rollerverbrauch/templates/editVehicleForm.html +++ b/app/rollerverbrauch/templates/editVehicleForm.html @@ -1,12 +1,18 @@ {% extends "layout.html" %} {% block body %} -

Edit vehicle

-
- {{ form.hidden_tag() }} - {{ render_field_with_errors(form.name) }} - {{ render_field_with_errors(form.submit) }} -
- +
+
+
+
+

Edit vehicle

+
+ {{ form.hidden_tag() }} + {{ render_field_with_errors(form.name) }} + {{ render_field_with_errors(form.submit) }} +
+
+
+
{% endblock %} diff --git a/app/rollerverbrauch/templates/index.html b/app/rollerverbrauch/templates/index.html index 4ab1607..e45181f 100644 --- a/app/rollerverbrauch/templates/index.html +++ b/app/rollerverbrauch/templates/index.html @@ -3,6 +3,9 @@ {% block body %}
+
+ {{ render_login_form() }} +
@@ -21,22 +24,5 @@
-
-
-
-
- {{ login_user_form.hidden_tag() }} - {{ render_field_with_errors(login_user_form.email) }} - {{ render_field_with_errors(login_user_form.password) }} - {{ render_field_with_errors(login_user_form.remember) }} - {{ render_field(login_user_form.next) }} - {{ render_field_with_errors(login_user_form.submit) }} - {% if security.recoverable %} - Forgot password - {% endif %} -
-
-
-
{% endblock %} diff --git a/app/rollerverbrauch/templates/layout.html b/app/rollerverbrauch/templates/layout.html index e03289b..900e588 100644 --- a/app/rollerverbrauch/templates/layout.html +++ b/app/rollerverbrauch/templates/layout.html @@ -16,14 +16,22 @@ {% macro render_field_with_errors(field) %}
{% if field.type == 'SubmitField' %} -
+
+ +
+ +
{% else %} -
+
{% if field.type == 'SelectField' %}