aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/views/default')
-rw-r--r--app/Resources/views/default/AllDataPage.html.twig25
-rw-r--r--app/Resources/views/default/index.html.twig1
2 files changed, 26 insertions, 0 deletions
diff --git a/app/Resources/views/default/AllDataPage.html.twig b/app/Resources/views/default/AllDataPage.html.twig
new file mode 100644
index 0000000..7851afb
--- /dev/null
+++ b/app/Resources/views/default/AllDataPage.html.twig
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Title</title>
+</head>
+<body>
+<table>
+ <tr>
+ <th>TimeStamp</th>
+ <th>Co</th>
+ <th>No</th>
+ <th>So</th>
+ </tr>
+ <tr>
+ {% for table in data %}
+ <td>{{ table.TimeStamp }}</td>
+ <td>{{ table.Co }}</td>
+ <td>{{ table.No }}</td>
+ <td>{{ table.So }}</td>
+ </tr>
+ {% endfor %}
+</table>
+</body>
+</html> \ No newline at end of file
diff --git a/app/Resources/views/default/index.html.twig b/app/Resources/views/default/index.html.twig
index 2fc12a2..684393d 100644
--- a/app/Resources/views/default/index.html.twig
+++ b/app/Resources/views/default/index.html.twig
@@ -17,6 +17,7 @@
</tr>
</table>
</div>
+ <a href="/AllDataReadings">All Data Page</a>
<p id="aq">{{ Aqi }}</p>
<img src="https://www.ourair.org/wp-content/uploads/AQItable.gif">
{% endblock %}