38 lines
1.0 KiB
PHP
Executable File
38 lines
1.0 KiB
PHP
Executable File
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
|
|
|
|
|
|
$this->title = $model->id;
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend', 'Тексты'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="i18n-source-message-view">
|
|
|
|
<h1><?php echo Html::encode($this->title) ?></h1>
|
|
|
|
<p>
|
|
<?php echo Html::a(Yii::t('backend', 'Редактировать'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
|
<?php echo Html::a(Yii::t('backend', 'Удалить'), ['delete', 'id' => $model->id], [
|
|
'class' => 'btn btn-danger',
|
|
'data' => [
|
|
'confirm' => Yii::t('backend', 'Вы уверены, что хотите удалить эту запись?'),
|
|
'method' => 'post',
|
|
],
|
|
]) ?>
|
|
</p>
|
|
|
|
<?php echo DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id',
|
|
'category',
|
|
'message:ntext',
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|