aboutsummaryrefslogtreecommitdiff
path: root/templates/mail
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-13 10:05:57 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-13 10:05:57 +0500
commite776aa3351535f78c60ab9502dd1154e2b973227 (patch)
treeb19a69b83975aceca5ffa854da5181e62221fc0e /templates/mail
parent74471c1fbbb7e8a09a6958fa88930a2905b4a3eb (diff)
downloadtrackermap-server-e776aa3351535f78c60ab9502dd1154e2b973227.tar.gz
trackermap-server-e776aa3351535f78c60ab9502dd1154e2b973227.tar.bz2
trackermap-server-e776aa3351535f78c60ab9502dd1154e2b973227.zip
- Save both driver name and driver unique id in trip report
- Map user and driver objects to notification templates - Add driverUnauthorized templates
Diffstat (limited to 'templates/mail')
-rw-r--r--templates/mail/driverUnauthorized.vm10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/mail/driverUnauthorized.vm b/templates/mail/driverUnauthorized.vm
new file mode 100644
index 000000000..3d28266cd
--- /dev/null
+++ b/templates/mail/driverUnauthorized.vm
@@ -0,0 +1,10 @@
+#set($subject = "$device.name: driver unauthorized")
+<!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>