aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-14 21:19:53 +1200
committerGitHub <noreply@github.com>2017-07-14 21:19:53 +1200
commit26f1cf12867d6f8bfe86d562a3beecb590b3a9b5 (patch)
treeef3b8d2644aae5c5263241640ebb2e2b251f7b0c /templates
parenta2e1f56adf50746425565557dd38f0e2c81a0222 (diff)
parentb6a318daabbaf485e327cab77adba98413462516 (diff)
downloadtrackermap-server-26f1cf12867d6f8bfe86d562a3beecb590b3a9b5.tar.gz
trackermap-server-26f1cf12867d6f8bfe86d562a3beecb590b3a9b5.tar.bz2
trackermap-server-26f1cf12867d6f8bfe86d562a3beecb590b3a9b5.zip
Merge pull request #3349 from Abyss777/drivers
Drivers implementation
Diffstat (limited to 'templates')
-rw-r--r--templates/export/trips.xlsxbin13189 -> 13239 bytes
-rw-r--r--templates/mail/driverChanged.vm10
-rw-r--r--templates/sms/driverChanged.vm6
3 files changed, 16 insertions, 0 deletions
diff --git a/templates/export/trips.xlsx b/templates/export/trips.xlsx
index 0e0ab4494..4a6734850 100644
--- a/templates/export/trips.xlsx
+++ b/templates/export/trips.xlsx
Binary files differ
diff --git a/templates/mail/driverChanged.vm b/templates/mail/driverChanged.vm
new file mode 100644
index 000000000..ba1e68661
--- /dev/null
+++ b/templates/mail/driverChanged.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: driver has changed")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
+Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
+Driver: #{if}($driver)$driver.name#{else}$event.getString("driverUniqueId")#{end}
+</body>
+</html>
diff --git a/templates/sms/driverChanged.vm b/templates/sms/driverChanged.vm
new file mode 100644
index 000000000..50849df7c
--- /dev/null
+++ b/templates/sms/driverChanged.vm
@@ -0,0 +1,6 @@
+#if($driver)
+#set($driverName = $driver.name)
+#else
+#set($driverName = $event.getString("driverUniqueId"))
+#end
+Driver $driverName has changed in $device.name at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)