use kartik\form\ActiveForm; use kartik\helpers\Html; use kartik\password\PasswordInput; use comyii\user\Module; use comyii\user\widgets\Logo; use comyii\user\widgets\UserMenu; $m = Yii::$app->getModule('user'); $this->title = Yii::t('user', 'Change Password') . ' (' . $model->username . ')'; /** * @var yii\web\View $this * @var comyii\user\models\Login $model */ ?> <div class="page-header"> <div class="pull-right"><?php echo UserMenu::widget(['ui' => 'password', 'user' => $model->id]); ?> </div> <h1><?php echo $this->title; ?> </h1> </div> <?php $form = ActiveForm::begin(['type' => ActiveForm::TYPE_HORIZONTAL, 'formConfig' => ['labelSpan' => 4]]); ?> <div class="row"> <div class="col-md-8"> <?php echo $form->field($model, 'password')->passwordInput(['placeholder' => Yii::t('user', 'Enter current password')]); ?>
* @var comyii\user\models\User $model * @var comyii\user\models\UserProfile $profile */ $m = Yii::$app->getModule('user'); $this->title = Yii::t('user', 'Update Profile') . ' (' . $model->username . ')'; $this->params['breadcrumbs'][] = ['label' => Yii::t('user', $model->username), 'url' => ['index']]; $this->params['breadcrumbs'][] = Yii::t('user', 'Update'); $profileSettings = $m->profileSettings; $socialSettings = $m->socialSettings; $hasSocial = $socialSettings['enabled']; $hasProfile = $profileSettings['enabled']; $socialDetails = ''; ?> <div class="page-header"> <div class="pull-right"><?php echo UserMenu::widget(['ui' => 'edit', 'user' => $model->id]); ?> </div> <h1><?php echo $this->title; ?> </h1> </div> <?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]); if (!$hasProfile) { ?> <?php if ($model->hasErrors()) { echo $form->errorSummary($model); }
* @version 1.0.0 * @see https://github.com/communityii/yii2-user */ use yii\web\View; use comyii\user\models\User; use comyii\user\models\UserProfile; use comyii\user\models\SocialProfile; use comyii\user\widgets\UserMenu; use comyii\user\widgets\ProfileView; /** * @var View $this * @var User $model * @var UserProfile $profile * @var SocialProfile $social * @var mixed $settings */ $this->title = Yii::t('user', 'Profile') . ' (' . $model->username . ')'; $this->params['breadcrumbs'][] = $model->username; ?> <div class="page-header"> <div class="pull-right"><?php echo UserMenu::widget(['ui' => 'view', 'user' => $model->id]); ?> </div> <h1><?php echo $this->title; ?> </h1> </div> <?php echo ProfileView::widget(['model' => $model, 'social' => $social, 'profile' => $profile]);