aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-12-01 11:06:29 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-12-01 11:06:29 +0100
commit7d09b3a6201a175128421d117d4c63495813fa05 (patch)
treee014a83d47801ea13ce5ee9259082dde0fe43ce0 /app
parent491eb42cd125b76f96d4f906c3822202d55395a1 (diff)
Refactored sending of e-mails and made it work.
Diffstat (limited to 'app')
-rw-r--r--app/Resources/views/emails/registration.html.twig6
-rw-r--r--app/Resources/views/emails/warning.html.twig23
2 files changed, 23 insertions, 6 deletions
diff --git a/app/Resources/views/emails/registration.html.twig b/app/Resources/views/emails/registration.html.twig
deleted file mode 100644
index c2ac995..0000000
--- a/app/Resources/views/emails/registration.html.twig
+++ /dev/null
@@ -1,6 +0,0 @@
-{# app/Resources/views/Emails/registration.html.twig #}
-<h3>You did it! You registered!</h3>
-
-Hi {{ name }}! You're successfully registered.
-
-Thanks! \ No newline at end of file
diff --git a/app/Resources/views/emails/warning.html.twig b/app/Resources/views/emails/warning.html.twig
new file mode 100644
index 0000000..29a686c
--- /dev/null
+++ b/app/Resources/views/emails/warning.html.twig
@@ -0,0 +1,23 @@
+{# app/Resources/views/emails/registration.html.twig #}
+<h3>WARNING!</h3>
+
+<img src="https://i.imgflip.com/20b4q2.jpg"/>
+
+<div id="wrapper">
+ <table>
+ <tr>
+ <th>TimeStamp</th>
+ <th>Co</th>
+ <th>No</th>
+ <th>So</th>
+ </tr>
+ <tr id="latest">
+ <td>{{ data->TimeStamp }}</td>
+ <td>{{ Co }}</td>
+ <td>{{ No }}</td>
+ <td>{{ So }}</td>
+ </tr>
+ </table>
+</div>
+<a href="/AllDataReadings">All Data Page</a>
+<p id="aq">{{ Aqi }}</p> \ No newline at end of file