12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- use yii\helpers\Html;
- use yii\widgets\DetailView;
- /** @var yii\web\View $this */
- /** @var manager\models\Comments $model */
- $this->title = $model->id;
- $this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']];
- $this->params['breadcrumbs'][] = $this->title;
- \yii\web\YiiAsset::register($this);
- ?>
- <div class="comments-view">
- <p>
- <?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
- <?= Html::a('Создать фильтр', ['filter', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
- <?= Html::a('Удалить', ['delete', 'id' => $model->id], [
- 'class' => 'btn btn-danger',
- 'data' => [
- 'confirm' => 'Are you sure you want to delete this item?',
- 'method' => 'post',
- ],
- ]) ?>
- </p>
- <?= DetailView::widget([
- 'model' => $model,
- 'attributes' => [
- 'id',
- 'news_id',
- 'visible',
- 'message:ntext',
- 'ip_address',
- 'user_agent:ntext',
- [
- 'label' => 'User Agent - компактный',
- 'value' => md5( $model->user_agent )
- ],
- 'created_by_user_id',
- 'created_at',
- ],
- ]) ?>
- </div>
|