aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-18 21:05:09 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-18 21:05:09 +1200
commitd8e9e8b26239499a87440ecc6a611b82f07986a7 (patch)
tree1997ed83e78d6527187555f7fcd8c0bcbf11fd1d /templates
parent3aaaa1de76612e26c6d25f930d94fdf4ee810d7d (diff)
downloadtraccar-server-d8e9e8b26239499a87440ecc6a611b82f07986a7.tar.gz
traccar-server-d8e9e8b26239499a87440ecc6a611b82f07986a7.tar.bz2
traccar-server-d8e9e8b26239499a87440ecc6a611b82f07986a7.zip
Add fuel drop event templates
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/deviceFuelDrop.vm9
-rw-r--r--templates/sms/deviceFuelDrop.vm1
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/mail/deviceFuelDrop.vm b/templates/mail/deviceFuelDrop.vm
new file mode 100644
index 000000000..c30ec3a1c
--- /dev/null
+++ b/templates/mail/deviceFuelDrop.vm
@@ -0,0 +1,9 @@
+#set($subject = "$device.name: fuel drop")
+<!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>
+</body>
+</html>
diff --git a/templates/sms/deviceFuelDrop.vm b/templates/sms/deviceFuelDrop.vm
new file mode 100644
index 000000000..5e51396d4
--- /dev/null
+++ b/templates/sms/deviceFuelDrop.vm
@@ -0,0 +1 @@
+$device.name fuel drop at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)