<?php use yii\helpers\Html; use yii\grid\GridView; use backend\assets\UserAsset; use backend\models\User; /* @var $this yii\web\View */ /* @var $searchModel backend\models\UserSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ UserAsset::register($this); $this->title = 'User Admin'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-index"> <h1><?php echo Html::encode($this->title); ?> </h1> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <p> <?php echo Html::a('Create User', ['create'], ['class' => 'btn btn-success']); ?> </p> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'showOnEmpty' => true, 'layout' => "{pager}\n{summary}\n{items}", 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'nama_depan', 'email:email', ['attribute' => 'type_user', 'format' => 'raw', 'value' => function ($model) {
<?php use yii\helpers\Html; use yii\widgets\DetailView; \backend\assets\EndAsset::register($this); \backend\assets\UserAsset::register($this); /* @var $this yii\web\View */ /* @var $model common\models\User */ $this->title = "Изменить пароль, роль пользователя"; $this->params['breadcrumbs'][] = ['label' => 'Пользователи', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <?php $notif = "\n\$(document).ready(function () {\n\n notif({\n msg: '<b>Пароль успешно сохранен</b>',\n position: 'center',\n type: 'success',\n opacity: .97\n });\n\n\n});\n "; if ($alert === "pass_ok") { $this->registerJs($notif, \yii\web\View::POS_HEAD); } ?> <h1><?php echo Html::encode($this->title); ?> </h1> </div>