From 322b79babf45b1bff0d219cfbf10524b975075fd Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 7 Dec 2017 12:38:55 +0100 Subject: Split all data and data from last week, moved chart to the right side of the page. --- app/Resources/views/base.html.twig | 7 +++-- app/Resources/views/default/AllData.html.twig | 35 ++++++++++++++++++++++ app/Resources/views/default/AllDataPage.html.twig | 29 ------------------ app/Resources/views/default/LastWeekData.html.twig | 35 ++++++++++++++++++++++ 4 files changed, 75 insertions(+), 31 deletions(-) create mode 100644 app/Resources/views/default/AllData.html.twig delete mode 100644 app/Resources/views/default/AllDataPage.html.twig create mode 100644 app/Resources/views/default/LastWeekData.html.twig (limited to 'app') diff --git a/app/Resources/views/base.html.twig b/app/Resources/views/base.html.twig index 3f93ff8..b4cc11a 100644 --- a/app/Resources/views/base.html.twig +++ b/app/Resources/views/base.html.twig @@ -14,8 +14,11 @@ Pollutometer Pollutometer - - All Data Readings + + All Data + + + Last Week Data diff --git a/app/Resources/views/default/AllData.html.twig b/app/Resources/views/default/AllData.html.twig new file mode 100644 index 0000000..7bc33af --- /dev/null +++ b/app/Resources/views/default/AllData.html.twig @@ -0,0 +1,35 @@ +{% extends 'base.html.twig' %} + +{% block body %} +
+
+ + + + + + + + + + + + {% for table in data %} + + + + + + + {% endfor %} +
TimeStampCoNoSo
{{ table.TimeStamp }}{{ table.Co }}{{ table.No }}{{ table.So }}
+
+
+ +
+
+{% endblock %} +{% block javascripts %} + + - - - TimeStamp - Co - No - So - - - - - {% for table in data %} - {{ table.TimeStamp }} - {{ table.Co }} - {{ table.No }} - {{ table.So }} - - - {% endfor %} - - -{% endblock %} -{% block javascripts %} - - +
+ + + + + + + + + + + + {% for table in data %} + + + + + + + {% endfor %} +
TimeStampCoNoSo
{{ table.TimeStamp }}{{ table.Co }}{{ table.No }}{{ table.So }}
+
+
+ +
+ +{% endblock %} +{% block javascripts %} + +