diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-04-25 19:09:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 19:09:13 +0200 |
commit | 4c7045229c94973c1cb83193e69463f426ddc35b (patch) | |
tree | 3f61c22429513f4e70987eb200dc772be8aa70ab /tpl/default/configure.html | |
parent | 504c9df4e7ed126678f146d4c349c798b8338407 (diff) | |
parent | 49bc541d7973bd86776441eb072e66d01b368e68 (diff) | |
download | Shaarli-4c7045229c94973c1cb83193e69463f426ddc35b.tar.gz Shaarli-4c7045229c94973c1cb83193e69463f426ddc35b.tar.zst Shaarli-4c7045229c94973c1cb83193e69463f426ddc35b.zip |
Merge pull request #830 from ArthurHoaro/theme/timezone
Change timezone data structure send to the templates
Diffstat (limited to 'tpl/default/configure.html')
-rw-r--r-- | tpl/default/configure.html | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html index 12261487..7469ab59 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html | |||
@@ -73,15 +73,35 @@ | |||
73 | <div class="pure-u-lg-{$ratioLabel} pure-u-1 "> | 73 | <div class="pure-u-lg-{$ratioLabel} pure-u-1 "> |
74 | <div class="form-label"> | 74 | <div class="form-label"> |
75 | <label> | 75 | <label> |
76 | <span class="label-name">{'Timezone'|t}</span> | 76 | <span class="label-name">{'Timezone'|t}</span><br> |
77 | <span class="label-desc">{'Continent'|t} · {'City'|t}</span> | ||
77 | </label> | 78 | </label> |
78 | </div> | 79 | </div> |
79 | </div> | 80 | </div> |
80 | <div class="pure-u-lg-{$ratioInput} pure-u-1 "> | 81 | <div class="pure-u-lg-{$ratioInput} pure-u-1 "> |
81 | <div class="form-input"> | 82 | <div class="form-input"> |
82 | {ignore}FIXME! too hackish, needs to be fixed upstream{/ignore} | 83 | <div class="timezone"> |
83 | <div class="timezone" id="timezone-remove">{$timezone_form}</div> | 84 | <select id="continent" name="continent"> |
84 | <div class="timezone" id="timezone-add"></div> | 85 | {loop="$continents"} |
86 | {if="$key !== 'selected'"} | ||
87 | <option value="{$value}" {if="$continents.selected === $value"}selected{/if}> | ||
88 | {$value} | ||
89 | </option> | ||
90 | {/if} | ||
91 | {/loop} | ||
92 | </select> | ||
93 | <select id="city" name="city"> | ||
94 | {loop="$cities"} | ||
95 | {if="$key !== 'selected'"} | ||
96 | <option value="{$value.city}" | ||
97 | {if="$cities.selected === $value.city"}selected{/if} | ||
98 | data-continent="{$value.continent}"> | ||
99 | {$value.city} | ||
100 | </option> | ||
101 | {/if} | ||
102 | {/loop} | ||
103 | </select> | ||
104 | </div> | ||
85 | </div> | 105 | </div> |
86 | </div> | 106 | </div> |
87 | </div> | 107 | </div> |