diff options
author | Shadify <boomkin1234@hotmail.com> | 2017-11-30 13:06:42 +0100 |
---|---|---|
committer | Shadify <boomkin1234@hotmail.com> | 2017-11-30 13:06:42 +0100 |
commit | fb182cdeeb54478f634d8d7a6d49d53d3dec69e1 (patch) | |
tree | cf639b022525f3b6091a2f584b413cb8af35dcd8 /app/Resources/views | |
parent | 4246f15d64d9ec460b3cb5acc2e838978bc2c91c (diff) |
Added all readings for graph
Diffstat (limited to 'app/Resources/views')
-rw-r--r-- | app/Resources/views/default/AllDataPage.html.twig | 25 | ||||
-rw-r--r-- | app/Resources/views/default/index.html.twig | 1 |
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 %} |