From 5edfbb9e9b396e98fb0911a420159113dbb182b2 Mon Sep 17 00:00:00 2001 From: joachim lusiardi Date: Tue, 17 Mar 2015 20:57:38 +0100 Subject: [PATCH] added manual --- app/main.py | 5 ++++- app/templates/layout.html | 10 ++++++++-- app/templates/manual.html | 32 +++++++++++++++++++++++++++++++ app/templates/newPitStopForm.html | 7 ------- app/templates/pitstops.html | 6 ------ app/templates/services.html | 6 ------ app/templates/statistics.html | 6 ------ 7 files changed, 44 insertions(+), 28 deletions(-) create mode 100644 app/templates/manual.html diff --git a/app/main.py b/app/main.py index 78399e4..ceb9874 100644 --- a/app/main.py +++ b/app/main.py @@ -8,7 +8,6 @@ import time import db - #from db import Db app = Flask(__name__) DATABASE = '/data/rollerverbrauch.db' @@ -102,6 +101,10 @@ def get_pit_stops(): g.data['pitstops'] = data return render_template('pitstops.html', data=g.data) +@app.route('/manual', methods=['GET']) +def get_manual(): + return render_template('manual.html', data=g.data) + @app.route('/statistics', methods=['GET']) def get_statistics(): pitstops = g.db2.getAllPitStops() diff --git a/app/templates/layout.html b/app/templates/layout.html index e231671..a25a3e9 100644 --- a/app/templates/layout.html +++ b/app/templates/layout.html @@ -17,6 +17,13 @@ {%- endmacro %} +{% macro navigation() -%} +
  • Create Pitstop
  • +
  • Statistics
  • +
  • Services
  • +
  • Manual
  • +{%- endmacro %} + @@ -61,8 +68,7 @@ diff --git a/app/templates/manual.html b/app/templates/manual.html new file mode 100644 index 0000000..4853639 --- /dev/null +++ b/app/templates/manual.html @@ -0,0 +1,32 @@ +{% extends "layout.html" %} + +{% macro line(header, cell) -%} + + + {{ header }} + + + {{ cell }} + + +{%- endmacro %} + +{% block body %} + {{ service_warning() }} + +
    + + {{ line('Reifenluftdruck (vorne)', '1,75 - 2,0 Bar') }} + {{ line('Reifenluftdruck (hinten)', '2,0 - 2,25 Bar') }} + {{ line('Scheinwerfer', '12V 35/35W HS1-Halogen-Glühlampe') }} + {{ line('Standlicht', '12V 5W Glassockel 9mm') }} + {{ line('Blinker vorne', '12V 10W Stecksockel 15mm') }} + {{ line('Rück-/Bremslicht', '12V/21/5W Stecksockel 15mm') }} + {{ line('Blinker hinten', '12V 10W Stecksockel 15mm') }} + {{ line('Tankinhalt', 'ca. 6,0 L') }} + {{ line('Motoröl', 'SAE 15W40') }} + {{ line('Getriebeöl', 'SAE 80/90 (0,12/0,09') }} +
    +
    + +{% endblock %} \ No newline at end of file diff --git a/app/templates/newPitStopForm.html b/app/templates/newPitStopForm.html index a72932b..71aaa96 100644 --- a/app/templates/newPitStopForm.html +++ b/app/templates/newPitStopForm.html @@ -1,12 +1,5 @@ {% extends "layout.html" %} -{% block navigation %} -
  • Create Pitstop
  • -
  • Statistics
  • -
  • Services
  • -{% endblock %} - - {% block body %} {{ service_warning() }} diff --git a/app/templates/pitstops.html b/app/templates/pitstops.html index 7454565..eb4f74f 100644 --- a/app/templates/pitstops.html +++ b/app/templates/pitstops.html @@ -1,11 +1,5 @@ {% extends "layout.html" %} -{% block navigation %} -
  • Create Pitstop
  • -
  • Statistics
  • -
  • Services
  • -{% endblock %} - {% block body %} {{ service_warning() }} diff --git a/app/templates/services.html b/app/templates/services.html index c8166b2..6a15cdf 100644 --- a/app/templates/services.html +++ b/app/templates/services.html @@ -1,11 +1,5 @@ {% extends "layout.html" %} -{% block navigation %} -
  • Create Pitstop
  • -
  • Statistics
  • -
  • Services
  • -{% endblock %} - {% block body %} {{ service_warning() }} diff --git a/app/templates/statistics.html b/app/templates/statistics.html index 7e52722..dd3913c 100644 --- a/app/templates/statistics.html +++ b/app/templates/statistics.html @@ -1,11 +1,5 @@ {% extends "layout.html" %} -{% block navigation %} -
  • Create Pitstop
  • -
  • Statistics
  • -
  • Services
  • -{% endblock %} - {% block body %} {{ service_warning() }}