Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- use yii\helpers\Html;
- use yii\widgets\DetailView;
- /* @var $this yii\web\View */
- /* @var $model common\models\User */
- $this->title = $model->username;
- $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Users'), 'url' => ['index']];
- $this->params['breadcrumbs'][] = $this->title;
- \yii\web\YiiAsset::register($this);
- ?>
- <div class="user-view">
- <p>
- <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
- <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
- 'class' => 'btn btn-danger',
- 'data' => [
- 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
- 'method' => 'post',
- ],
- ]) ?>
- <?= Html::a(Yii::t('app', 'Change Password'), ['change-password', 'id' => $model->id], [
- 'class' => 'btn btn-warning',
- 'data' => [
- 'confirm' => Yii::t('app', 'Are you sure you want to change the password?'),
- ],
- ]) ?>
- </p>
- <?= DetailView::widget([
- 'model' => $model,
- 'template' => '<tr><th{captionOptions} class="col-sm-2">{label}</th><td{contentOptions}>{value}</td></tr>',
- 'attributes' => [
- 'id',
- 'username',
- 'email:email',
- 'status:userStatus',
- 'created_at:dateTime',
- 'updated_at:dateTime',
- ],
- ]) ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement