From d8e9e8b26239499a87440ecc6a611b82f07986a7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 18 Apr 2017 21:05:09 +1200 Subject: Add fuel drop event templates --- templates/mail/deviceFuelDrop.vm | 9 +++++++++ templates/sms/deviceFuelDrop.vm | 1 + 2 files changed, 10 insertions(+) create mode 100644 templates/mail/deviceFuelDrop.vm create mode 100644 templates/sms/deviceFuelDrop.vm (limited to 'templates') 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") + + + +Device: $device.name
+Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)
+Point: #{if}($position.address)$position.address#{else}$position.latitude°, $position.longitude°#{end}
+ + 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) -- cgit v1.2.3