39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
use yii\helpers\Html;
|
||
|
use yii\widgets\DetailView;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
$this->title = $model->getPublicIdentity();
|
||
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend', 'Пользователи'), 'url' => ['index']];
|
||
|
$this->params['breadcrumbs'][] = $this->title;
|
||
|
?>
|
||
|
|
||
|
<p>
|
||
|
<?= Html::a(Yii::t('backend', 'Редактировать'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||
|
<?= Html::a(Yii::t('backend', 'Удалить'), ['delete', 'id' => $model->id], [
|
||
|
'class' => 'btn btn-danger',
|
||
|
'data' => [
|
||
|
'confirm' => Yii::t('backend', 'Вы уверены, что хотите удалить эту запись?'),
|
||
|
'method' => 'post',
|
||
|
],
|
||
|
]) ?>
|
||
|
</p>
|
||
|
|
||
|
<?= DetailView::widget([
|
||
|
'model' => $model,
|
||
|
'attributes' => [
|
||
|
'id',
|
||
|
'username',
|
||
|
'auth_key',
|
||
|
'password_reset_token',
|
||
|
'email:email',
|
||
|
'status',
|
||
|
'created_at:datetime',
|
||
|
'updated_at:datetime',
|
||
|
'logged_at:datetime',
|
||
|
],
|
||
|
]);
|