2021-12-27 16:50:17 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use yii\helpers\Html;
|
|
|
|
use yii\widgets\DetailView;
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
/* @var $model backend\modules\document\models\DocumentField */
|
|
|
|
|
|
|
|
$this->title = $model->title;
|
|
|
|
$this->params['breadcrumbs'][] = ['label' => 'Document Fields', 'url' => ['index']];
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
|
\yii\web\YiiAsset::register($this);
|
|
|
|
?>
|
|
|
|
<div class="document-field-view">
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<?= Html::a('Список', ['index', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
|
|
|
<?= Html::a('Изменить', ['update', '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',
|
|
|
|
'title',
|
2022-01-07 15:04:11 +03:00
|
|
|
[
|
|
|
|
'attribute' => 'field_template',
|
|
|
|
'value' => '${' . $model->field_template . '}',
|
|
|
|
],
|
2021-12-27 16:50:17 +03:00
|
|
|
],
|
|
|
|
]) ?>
|
|
|
|
|
|
|
|
</div>
|