2015-10-19 00:45:58 +02:00
|
|
|
<?php
|
|
|
|
|
2015-10-24 17:32:26 +02:00
|
|
|
HTML::title(array('title'=>$L->g('Language and timezone'), 'icon'=>'cogs'));
|
2015-10-19 00:45:58 +02:00
|
|
|
|
|
|
|
HTML::formOpen(array('class'=>'uk-form-horizontal'));
|
|
|
|
|
|
|
|
HTML::formInputHidden(array(
|
2015-10-20 05:14:28 +02:00
|
|
|
'name'=>'tokenCSRF',
|
2015-11-28 15:47:03 +01:00
|
|
|
'value'=>$Security->getTokenCSRF()
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
HTML::legend(array('value'=>$L->g('General'), 'class'=>'first-child'));
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'language',
|
|
|
|
'label'=>$L->g('Language'),
|
|
|
|
'options'=>$Language->getLanguageList(),
|
|
|
|
'selected'=>$Site->language(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
|
|
|
'tip'=>$L->g('select-your-sites-language')
|
|
|
|
));
|
|
|
|
|
|
|
|
HTML::formSelect(array(
|
|
|
|
'name'=>'timezone',
|
|
|
|
'label'=>$L->g('Timezone'),
|
|
|
|
'options'=>Date::timezoneList(),
|
|
|
|
'selected'=>$Site->timezone(),
|
|
|
|
'class'=>'uk-width-1-3 uk-form-medium',
|
|
|
|
'tip'=>$L->g('select-a-timezone-for-a-correct')
|
|
|
|
));
|
|
|
|
|
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'locale',
|
|
|
|
'label'=>$L->g('Locale'),
|
|
|
|
'value'=>$Site->locale(),
|
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
2016-07-25 17:05:01 +02:00
|
|
|
'tip'=>$L->g('you-can-use-this-field-to-define-a-set-of')
|
2015-10-19 00:45:58 +02:00
|
|
|
));
|
|
|
|
|
2015-11-30 01:45:30 +01:00
|
|
|
HTML::legend(array('value'=>$L->g('Date and time formats')));
|
|
|
|
|
2015-11-14 17:47:26 +01:00
|
|
|
HTML::formInputText(array(
|
|
|
|
'name'=>'dateFormat',
|
|
|
|
'label'=>$L->g('Date format'),
|
|
|
|
'value'=>$Site->dateFormat(),
|
2016-05-10 02:27:05 +02:00
|
|
|
'class'=>'uk-width-1-2 uk-form-medium',
|
|
|
|
'tip'=>$L->g('Current format').': '.Date::current($Site->dateFormat())
|
2015-11-14 17:47:26 +01:00
|
|
|
));
|
|
|
|
|
2015-10-19 00:45:58 +02:00
|
|
|
echo '<div class="uk-form-row">
|
|
|
|
<div class="uk-form-controls">
|
|
|
|
<button type="submit" class="uk-button uk-button-primary">'.$L->g('Save').'</button>
|
|
|
|
</div>
|
|
|
|
</div>';
|
|
|
|
|
|
|
|
HTML::formClose();
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
$("#jslanguage").change(function () {
|
|
|
|
var locale = $("#jslanguage option:selected").val();
|
|
|
|
$("#jslocale").attr("value",locale);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
2015-11-28 15:47:03 +01:00
|
|
|
</script>
|