Example #1
0
        <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>    

        <?php 
echo $form->labelEx($model, 'defaultSpaceGuid');
?>
        <?php 
echo $form->textField($model, 'defaultSpaceGuid', array('class' => 'form-control', 'id' => 'space_select'));
?>

        <?php 
echo \humhub\modules\space\widgets\Picker::widget(['inputId' => 'space_select', 'model' => $model, 'maxSpaces' => 50, 'attribute' => 'defaultSpaceGuid']);
Example #2
0
    <?php 
echo $form->field($model, 'tags');
?>

    <?php 
if (count($languages) > 1) {
    ?>
        <?php 
    echo $form->field($model, 'language')->dropdownList($languages);
    ?>
    <?php 
}
?>

    <?php 
echo $form->field($model, 'timeZone')->dropdownList(\humhub\libs\TimezoneHelper::generateList());
?>

    <?php 
if (Yii::$app->getModule('user')->settings->get('auth.allowGuestAccess')) {
    ?>

        <?php 
    echo $form->field($model, 'visibility')->dropdownList([1 => Yii::t('UserModule.views_account_editSettings', 'Registered users only'), 2 => Yii::t('UserModule.views_account_editSettings', 'Visible for all (also unregistered users)')]);
    ?>


    <?php 
}
?>