Allow more units in widget cache settings

This commit is contained in:
Kijin Sung 2016-03-07 10:27:27 +09:00
parent f40ea2e05d
commit 145bdab6c6
2 changed files with 25 additions and 4 deletions

View file

@ -25,7 +25,14 @@
<div class="x_control-group">
<label class="x_control-label" for="widget_cache">{$lang->widget_cache}</label>
<div class="x_controls">
<input type="number" name="widget_cache" id="widget_cache" value="0" size="2" /> {$lang->unit_min}
<input type="number" name="widget_cache" id="widget_cache" value="0" size="5" />
<select name="widget_cache_unit" id="widget_cache_unit" style="width:60px;min-width:60px">
<option value="s">{$lang->unit_sec}</option>
<option value="m" selected="selected">{$lang->unit_min}</option>
<option value="h">{$lang->unit_hour}</option>
<option value="d">{$lang->unit_day}</option>
</select>
<br />
<p class="x_help-inline">{$lang->about_widget_cache}</p>
</div>
</div>