48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
|
<?php
|
||
|
|
||
|
use yii\helpers\ArrayHelper;
|
||
|
use yii\helpers\Html;
|
||
|
use yii\widgets\DetailView;
|
||
|
|
||
|
/* @var $this yii\web\View */
|
||
|
/* @var $model backend\modules\document\models\DocumentFieldValue */
|
||
|
|
||
|
$this->title = $model->value;
|
||
|
$this->params['breadcrumbs'][] = ['label' => 'Document Field Values', 'url' => ['index']];
|
||
|
$this->params['breadcrumbs'][] = $this->title;
|
||
|
\yii\web\YiiAsset::register($this);
|
||
|
?>
|
||
|
<div class="document-field-value-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',
|
||
|
[
|
||
|
'attribute' => 'field_id',
|
||
|
'value' => ArrayHelper::getValue($model, 'field.title') // AnswerHelper::answerFlagLabel($model->answer_flag),
|
||
|
],
|
||
|
[
|
||
|
'attribute' => 'document_id',
|
||
|
'value' => ArrayHelper::getValue($model, 'document.title') // AnswerHelper::answerFlagLabel($model->answer_flag),
|
||
|
],
|
||
|
'value',
|
||
|
],
|
||
|
|
||
|
]) ?>
|
||
|
|
||
|
</div>
|