Added fixed timezone setting

This commit is contained in:
Lucas Bartholemy 2020-07-27 13:46:38 +02:00
parent 9ee850872a
commit 7616e49bfe

View File

@ -3,6 +3,7 @@
use humhub\libs\TimezoneHelper;
use yii\widgets\ActiveForm;
use humhub\compat\CHtml;
?>
<div class="panel-body">
@ -25,8 +26,7 @@ use humhub\compat\CHtml;
<?= $languageDropDown = $form->field($model, 'defaultLanguage')->dropDownList($allowedLanguages, ['data-ui-select2' => '']); ?>
<?php endif; ?>
<?= $form->field($model, 'timeZone')->dropDownList(TimezoneHelper::generateList(true), ['data-ui-select2' => '']); ?>
<?= $form->field($model, 'timeZone')->dropDownList(TimezoneHelper::generateList(true), ['data-ui-select2' => '', 'disabled' => Yii::$app->settings->isFixed('timeZone')]); ?>
<?= $form->field($model, 'defaultStreamSort')->dropDownList($model->getDefaultStreamSortOptions()); ?>
<strong><?= Yii::t('AdminModule.settings', 'Dashboard'); ?></strong>