?> <?php echo $form->textField($model, 'baseUrl', array('class' => 'form-control', 'readonly' => Setting::IsFixed('baseUrl'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_index', 'E.g. http://example.com/humhub'); ?> </p> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultLanguage'); ?> <?php echo $form->dropDownList($model, 'defaultLanguage', Yii::$app->params['availableLanguages'], array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultLanguage'))); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'timeZone'); ?> <?php echo $form->dropDownList($model, 'timeZone', \humhub\libs\TimezoneHelper::generateList(), array('class' => 'form-control')); ?> <?php echo $form->error($model, 'timeZone'); ?> </div>
<div class="form-group"> <?php echo $form->labelEx($model, 'encryption'); ?> <?php echo $form->dropDownList($model, 'encryption', $encryptionTypes, array('class' => 'form-control', 'readonly' => Setting::IsFixed('mailer.encryption'))); ?> </div> <div id="encryptionOptions"> <div class="form-group"> <strong>Encryption Options</strong> <div class="checkbox"> <label> <?php echo $form->checkbox($model, 'allowSelfSignedCerts', array('class' => 'form-control', 'readonly' => Setting::IsFixed('mailer.allowSelfSignedCerts'))); ?> <?php echo $model->getAttributeLabel('allowSelfSignedCerts'); ?> </label> </div> </div> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_mailing_server', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => "")); ?> <?php
?> <?php echo $form->field($model, 'internalUsersCanInvite')->checkbox(); ?> <?php echo $form->field($model, 'internalRequireApprovalAfterRegistration')->checkbox(); ?> <?php echo $form->field($model, 'defaultUserGroup')->dropdownList($groups, ['readonly' => Setting::IsFixed('auth.defaultUserGroup', 'user')]); ?> <?php echo $form->field($model, 'defaultUserIdleTimeoutSec')->textInput(['readonly' => Setting::IsFixed('auth.defaultUserIdleTimeoutSec', 'user')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)'); ?> </p> <?php echo $form->field($model, 'defaultUserProfileVisibility')->dropdownList([1 => Yii::t('AdminModule.views_setting_authentication', 'Visible for members only'), 2 => Yii::t('AdminModule.views_setting_authentication', 'Visible for members+guests')], ['readonly' => !Yii::$app->getModule('user')->settings->get('auth.allowGuestAccess')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Only applicable when limited access for non-authenticated users is enabled. Only affects new users.'); ?> </p> <hr>
<p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"'); ?> </p> <?php echo $form->field($model, 'emailAttribute')->textInput(['readonly' => Setting::IsFixed('auth.ldap.emailAttribute', 'user')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for E-Mail Address. Default: "mail"'); ?> </p> <?php echo $form->field($model, 'refreshUsers')->checkbox(['readonly' => Setting::IsFixed('auth.ldap.refreshUsers', 'user')]); ?> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => "")); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php ActiveForm::end(); ?> </div>
echo $form->labelEx($model, 'maxPreviewImageHeight'); ?> <?php echo $form->textField($model, 'maxPreviewImageHeight', array('class' => 'form-control', 'readonly' => Setting::IsFixed('maxPreviewImageHeight', 'file'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_file', 'If not set, height will default to 200px.'); ?> </p> </div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'hideImageFileInfo', array('disabled' => Setting::IsFixed('hideImageFileInfo', 'file'))); ?> <?php echo $model->getAttributeLabel('hideImageFileInfo'); ?> </label> </div> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'allowedExtensions'); ?> <?php echo $form->textField($model, 'allowedExtensions', array('class' => 'form-control')); ?>
<div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserGroup'); ?> <?php echo $form->dropDownList($model, 'defaultUserGroup', $groups, array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultUserGroup', 'authentication_internal'))); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserIdleTimeoutSec'); ?> <?php echo $form->textField($model, 'defaultUserIdleTimeoutSec', array('class' => 'form-control', 'readonly' => Setting::IsFixed('defaultUserIdleTimeoutSec', 'authentication_internal'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)'); ?> </p> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'defaultUserProfileVisibility'); ?> <?php echo $form->dropDownList($model, 'defaultUserProfileVisibility', array(1 => 'Visible for members only', 2 => 'Visible for members+guests'), array('class' => 'form-control', 'readonly' => !Setting::Get('allowGuestAccess', 'authentication_internal'))); ?>
echo $form->labelEx($model, 'usernameAttribute'); ?> <?php echo $form->textField($model, 'usernameAttribute', array('class' => 'form-control', 'readonly' => Setting::IsFixed('usernameAttribute', 'authentication_ldap'))); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"'); ?> </p> </div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'refreshUsers', array('readonly' => Setting::IsFixed('refreshUsers', 'authentication_ldap'))); ?> <?php echo $model->getAttributeLabel('refreshUsers'); ?> </label> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary')); ?> <?php
</div> <div class="panel-body"> <?php $form = CActiveForm::begin(); ?> <?php echo $form->errorSummary($model); ?> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($model, 'enabled', array('readonly' => Setting::IsFixed('enabled', 'proxy'))); ?> <?php echo $model->getAttributeLabel('enabled'); ?> </label> </div> </div> <hr> <div class="form-group"> <?php echo $form->labelEx($model, 'server'); ?> <?php echo $form->textField($model, 'server', array('class' => 'form-control'));
?> <?php echo $form->field($model, 'internalUsersCanInvite')->checkbox(); ?> <?php echo $form->field($model, 'internalRequireApprovalAfterRegistration')->checkbox(); ?> <?php echo $form->field($model, 'defaultUserGroup')->dropdownList($groups, ['readonly' => Setting::IsFixed('defaultUserGroup', 'authentication_internal')]); ?> <?php echo $form->field($model, 'defaultUserIdleTimeoutSec')->textInput(['readonly' => Setting::IsFixed('defaultUserIdleTimeoutSec', 'authentication_internal')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Min value is 20 seconds. If not set, session will timeout after 1400 seconds (24 minutes) regardless of activity (default session timeout)'); ?> </p> <?php echo $form->field($model, 'defaultUserProfileVisibility')->dropdownList([1 => 'Visible for members only', 2 => 'Visible for members+guests'], ['readonly' => !Setting::Get('allowGuestAccess', 'authentication_internal')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication', 'Only applicable when limited access for non-authenticated users is enabled. Only affects new users.'); ?> </p> <hr>
<p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for Username. Example: "uid" or "sAMAccountName"'); ?> </p> <?php echo $form->field($model, 'emailAttribute')->textInput(['readonly' => Setting::IsFixed('emailAttribute', 'authentication_ldap')]); ?> <p class="help-block"><?php echo Yii::t('AdminModule.views_setting_authentication_ldap', 'LDAP Attribute for E-Mail Address. Default: "mail"'); ?> </p> <?php echo $form->field($model, 'refreshUsers')->checkbox(['readonly' => Setting::IsFixed('refreshUsers', 'authentication_ldap')]); ?> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication_ldap', 'Save'), array('class' => 'btn btn-primary')); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php ActiveForm::end(); ?>
<div class="form-group"> <?php echo $form->labelEx($model, 'type'); ?> <?php echo $form->dropDownList($model, 'type', $cacheTypes, array('class' => 'form-control', 'readonly' => Setting::IsFixed('type', 'cache'))); ?> <br> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'expireTime'); ?> <?php echo $form->textField($model, 'expireTime', array('class' => 'form-control', 'readonly' => Setting::IsFixed('expireTime', 'cache'))); ?> <br> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_caching', 'Save & Flush Caches'), array('class' => 'btn btn-primary')); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?>
echo $form->errorSummary($model); ?> <div class="form-group"> <?php echo $form->labelEx($model, 'theme'); ?> <?php echo $form->dropDownList($model, 'theme', AdminController::getThemes(), ['class' => 'form-control', 'readonly' => Setting::IsFixed('theme', 'humhubchat')]); ?> </div> <div class="form-group"> <?php echo $form->labelEx($model, 'timeout'); ?> <?php echo $form->textField($model, 'timeout', ['class' => 'form-control', 'readonly' => Setting::IsFixed('timeout', 'humhubchat')]); ?> </div> <p class="help-block"><?php echo Yii::t('Humhub-chatModule.base', 'Amount of days, after messages will be deleted; min value is 0 (no deletion); max: 365'); ?> </p> <?php echo Html::submitButton(Yii::t('Humhub-chatModule.base', 'Save'), ['class' => 'btn btn-primary']); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?>