public function hiddenField($model, $attribute, $htmlOptions = array(), $value = null) { if ($value !== null) { $model->{$attribute} = $value; } return CHtml::activeHiddenInput($model, $attribute, $htmlOptions); }
<div class="form-group"> <?php echo $form->labelEx($model, 'name'); ?> <?php echo $form->textField($model, 'name', array('class' => 'form-control')); ?> <?php echo $form->error($model, 'name'); ?> </div> <hr> <?php echo CHtml::submitButton(Yii::t('InstallerModule.views_config_basic', 'Next'), array('class' => 'btn btn-primary', 'data-ui-loader' => '')); ?> <?php CActiveForm::end(); ?> </div> </div> <script type="text/javascript"> $(function () { // set cursor to email field $('#ConfigBasicForm_name').focus(); })
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 } ?> <?php if (Yii::$app->getModule('tour')->settings->get('enable') == 1) { ?> <?php echo $form->field($model, 'show_introduction_tour')->checkbox(); ?> <?php } ?> <hr> <?php echo CHtml::submitButton(Yii::t('UserModule.views_account_editSettings', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => '')); ?> <?php ActiveForm::end(); $this->endContent();
</div> <div class="form-group"> <div class="checkbox"> <label> <?php echo $form->checkBox($group, 'can_create_private_spaces'); ?> <?php echo $group->getAttributeLabel('can_create_private_spaces'); ?> </label> </div> </div> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_group_edit', 'Save'), array('class' => 'btn btn-primary')); ?> <?php if ($showDeleteButton) { echo Html::a(Yii::t('AdminModule.views_group_edit', 'Delete'), Url::toRoute(['/admin/group/delete', 'id' => $group->id]), array('class' => 'btn btn-danger')); } ?> <?php CActiveForm::end(); ?> </div> </div>
<?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> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_authentication', 'Save'), array('class' => 'btn btn-primary', 'data-ui-loader' => "")); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php ActiveForm::end(); ?> </div> <?php $this->endContent();
<?php use humhub\compat\CHtml; ?> <div class="panel-heading"> <?php echo Yii::t('UserModule.views_account_changeEmailValidate', '<strong>Change</strong> E-mail'); ?> </div> <div class="panel-body"> <?php echo Yii::t('UserModule.views_account_changeEmailValidate', 'Your e-mail address has been successfully changed to {email}.', array('{email}' => CHtml::encode($newEmail))); ?> </div>
<?php $form = CActiveForm::begin(); ?> <?php echo $form->errorSummary($model); ?> <div class="form-group"> <?php echo $form->dropDownList($model, 'group_id', $alternativeGroups, array('class' => 'form-control')); ?> <?php echo $form->error($model, 'group_id'); ?> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_group_delete', 'Delete group'), array('class' => 'btn btn-danger')); ?> <?php CActiveForm::end(); ?> </div></div>
<p><?php echo Yii::t('UserModule.views_auth_login', "Don't have an account? Join the network by entering your e-mail address."); ?> </p> <?php $form = ActiveForm::begin(['id' => 'account-register-form']); ?> <?php echo $form->field($registerModel, 'email')->textInput(['id' => 'register-email', 'placeholder' => $registerModel->getAttributeLabel('email')])->label(false); ?> <hr> <?php echo CHtml::submitButton(Yii::t('UserModule.views_auth_login', 'Register'), array('class' => 'btn btn-primary')); ?> <?php ActiveForm::end(); ?> </div> </div> <?php } ?> <?php echo humhub\widgets\LanguageChooser::widget(); ?>
?> </div> <ul class="media-list"> <?php foreach ($links[$category->id] as $link) { ?> <li id="linklist-widget-link_<?php echo $link->id; ?> "><a href="<?php echo $link->href; ?> " target="_blank" title="<?php echo CHtml::encode($link->description); ?> "><?php echo CHtml::encode($link->title); ?> </a></li> <?php } ?> </ul> </div> <?php } ?> </div> </div> </div>
</div> <div class="form-group"> <?php echo $form->labelEx($model, 'newPasswordConfirm'); ?> <?php echo $form->passwordField($model, 'newPasswordConfirm', array('class' => 'form-control', 'maxlength' => 255, 'value' => '')); ?> <?php echo $form->error($model, 'newPasswordConfirm'); ?> </div> <hr> <?php echo CHtml::submitButton(Yii::t('UserModule.views_account_changePassword', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?> </div>
?> "><?php echo CHtml::encode($levelName); ?> </span> <?php echo date('r', $entry->log_time); ?> <span class="pull-right"><?php echo CHtml::encode($entry->category); ?> </span> </h4> <?php echo CHtml::encode($entry->message); ?> </div> </li> <?php } ?> </ul> <?php if ($pagination->totalCount != 0) { ?> <div class="pull-right"><?php echo Html::a(Yii::t('AdminModule.views_logging_index', 'Flush entries'), array('flush'), array('class' => 'btn btn-danger', 'data-method' => 'post')); ?>
<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 echo \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?> </div> </div>
<?php $form = CActiveForm::begin(); ?> <p class="help-block">Fields with <span class="required">*</span> are required.</p><br> <?php echo $form->errorSummary($model); ?> <div class="form-group"> <?php echo $form->passwordField($model, 'currentPassword', array('class' => 'form-control', 'placeholder' => Yii::t('UserModule.views_account_delete', 'Enter your password to continue'), 'maxlength' => 45)); ?> </div> <?php echo CHtml::submitButton(Yii::t('UserModule.views_account_delete', 'Delete account'), array('class' => 'btn btn-danger')); ?> <!-- show flash message after saving --> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?> <?php } ?> </div>
echo $form->labelEx($model, 'ldap_dn'); ?> <?php echo $form->textField($model, 'ldap_dn', array('class' => 'form-control', 'maxlength' => 255)); ?> <?php echo $form->error($model, 'ldap_dn'); ?> </div> <hr> <?php } ?> <?php echo CHtml::submitButton(Yii::t('SpaceModule.views_admin_edit', 'Save'), array('class' => 'btn btn-primary')); ?> <?php echo \humhub\widgets\DataSaved::widget(); ?> <div class="pull-right"> <?php if ($model->status == Space::STATUS_ENABLED) { ?> <?php echo Html::a(Yii::t('SpaceModule.views_admin_edit', 'Archive'), $model->createUrl('/space/admin/archive'), array('class' => 'btn btn-warning')); ?> <?php } elseif ($model->status == Space::STATUS_ARCHIVED) {
<strong><?php echo Yii::t('UserModule.views_account_emailing', 'Activities'); ?> </strong><br/> <?php echo Yii::t('UserModule.views_account_emailing', 'Get an email, by every activity from other users you follow or work<br>together in workspaces.'); ?> <?php echo $form->field($model, 'receive_email_activities')->dropdownList([User::RECEIVE_EMAIL_NEVER => Yii::t('UserModule.views_account_emailing', 'Never'), User::RECEIVE_EMAIL_DAILY_SUMMARY => Yii::t('UserModule.views_account_emailing', 'Daily summary'), User::RECEIVE_EMAIL_WHEN_OFFLINE => Yii::t('UserModule.views_account_emailing', 'When I´m offline'), User::RECEIVE_EMAIL_ALWAYS => Yii::t('UserModule.views_account_emailing', 'Always')]); ?> <hr> <?php echo CHtml::submitButton(Yii::t('UserModule.views_account_emailing', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php echo \humhub\widgets\DataSaved::widget(); ?> <?php ActiveForm::end(); ?> </div>
<div class="checkbox"> <label> <?php echo $form->checkBox($model, 'dashboardShowProfilePostForm'); ?> <?php echo $model->getAttributeLabel('dashboardShowProfilePostForm'); ?> </label> </div> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_index', 'Save'), array('class' => 'btn btn-primary')); ?> <!-- show flash message after saving --> <?php \humhub\widgets\DataSaved::widget(); ?> <?php CActiveForm::end(); ?> </div> </div>
public function hiddenField($model, $attribute, $htmlOptions = array()) { return CHtml::activeHiddenInput($model, $attribute, $htmlOptions); }
src="<?php echo $user->getProfileImage()->getUrl(); ?> " width="34" height="34" alt="34x34" data-src="holder.js/34x34" style="width: 34px; height: 34px;"> </a> </td> <td> <strong><?php echo CHtml::a($user->displayName, $user->getUrl()); ?> </strong> <br/> <?php echo CHtml::encode($user->profile->title); ?> </td> <td width="100px"> <?php echo Html::a(Yii::t('SpaceModule.views_admin_members', 'Revoke invitation'), $space->createUrl('/space/admin/members-reject-applicant', ['userGuid' => $user->guid, 'reject' => true]), array('class' => 'btn btn-sm btn-primary', 'data-method' => 'POST')); ?> </td> </tr> <?php } ?> </tbody> </table> </div>
<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(); ?> </div> </div>