<p> <?php echo $form->field($model, 'id')->hiddenInput()->label(false); ?> <?php echo $form->field($model, 'template_name')->textInput(['maxlength' => true]); ?> <?php // $form->field($model, 'template_type')->textInput(['maxlength' => true]) ?> <?php echo $form->field($model, 'is_active')->textInput(); ?> <?php echo $form->field($model, 'user_id')->dropDownList(\yii\helpers\ArrayHelper::map(dektrium\user\models\User::find()->all(), 'id', 'username'), ['prompt' => Yii::t('app', 'Select')]); ?> </p> </div> </div> <?php $this->endBlock(); ?> <?php echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'Template', 'content' => $this->blocks['main'], 'active' => true]]]); ?> <hr/> <?php echo $form->errorSummary($model);
<!-- User Account: style can be found in dropdown.less --> <li class="dropdown user user-menu"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="glyphicon glyphicon-user"></i> <span><?php echo @Yii::$app->user->identity->username; ?> <i class="caret"></i> </span> </a> <ul class="dropdown-menu"> <!-- User image --> <li class="user-header bg-light-blue"> <?php $user = dektrium\user\models\User::findOne(['id' => \Yii::$app->getUser()->getId()]); ?> <img src="http://gravatar.com/avatar/<?php echo $avatar; ?> ?s=230" alt="User Image" class="img-circle" /> <p><?php echo @Yii::$app->user->identity->username; ?> <small>Member since <?php echo date('M. Y', $user->created_at); ?> </small></p> </li> <!-- Menu Body --> <li class="user-body"> <div class="col-xs-4 text-center"> <a href="<?php echo \yii\helpers\Url::to('@web/users/settings/profile');