aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/select_timezone.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/select_timezone.tpl')
-rw-r--r--view/tpl/select_timezone.tpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/view/tpl/select_timezone.tpl b/view/tpl/select_timezone.tpl
new file mode 100644
index 000000000..2820a54f4
--- /dev/null
+++ b/view/tpl/select_timezone.tpl
@@ -0,0 +1,11 @@
+{{* TODO: Make id configurabel *}}
+<select id='timezone_select' name='timezone'>
+{{foreach $continents as $continent => $cities}}
+<optgroup label="{{$continent}}">
+{{foreach $cities as $city => $value}}
+<option value='{{$value}}' {{if $value == $selected}}selected='selected'{{/if}}>{{$city}}</option>
+{{/foreach}}
+</optgroup>
+{{/foreach}}
+</select>
+