Current section

Files

Jump to
zotonic_mod_l10n priv templates _admin_l10n_config.tpl
Raw

priv/templates/_admin_l10n_config.tpl

<div class="form-group">
<div>
<select class="form-control" id="pref_tz" name="pref_tz">
<option></option>
{% include "_l10n_timezone_options.tpl" timezone=m.l10n.default_timezone %}
</select>
{% wire id="pref_tz"
type="change"
action={config_toggle module="mod_l10n" key="timezone"}
%}
<p class="help-block">
{_ This sets the default timezone. This timezone is used for the initial request by a user-agent or when the timezone is not known. _}
</p>
</div>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" name="pref_tz_fixed" id="pref_tz_fixed" value="1"
{% if m.l10n.timezone_is_fixed %}checked{% endif %}
/>
{_ Fix timezone, show all dates in the above timezone. _}
</label>
</div>
{% wire id="pref_tz_fixed"
action={config_toggle module="mod_l10n" key="timezone_is_fixed"}
%}
<p class="help-block">
{_ This forces the timezone to the configured timezone. Irrespective of the timezone selected by the user or user-agent. _}
</p>
</div>