move fields to up

This commit is contained in:
iIronside 2022-12-09 18:12:37 +03:00
parent 38935fddd3
commit 701e332537

View File

@ -27,40 +27,8 @@ $this->params['breadcrumbs'][] = $this->title;
'method' => 'post', 'method' => 'post',
], ],
]) ?> ]) ?>
</p> </p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'title',
[
'attribute' => 'company_id',
'value' => ArrayHelper::getValue($model, 'company.name'),
],
[
'attribute' => 'manager_id',
'value' => ArrayHelper::getValue($model, 'manager.userCard.fio'),
],
[
'attribute' => 'contractor_company_id',
'value' => ArrayHelper::getValue($model, 'contractorCompany.name'),
],
[
'attribute' => 'contractor_manager_id',
'value' => ArrayHelper::getValue($model, 'contractorManager.userCard.fio'),
],
[
'attribute' => 'body',
'format' => 'raw',
],
'created_at',
'updated_at',
],
]) ?>
<div> <div>
<h2> <h2>
<?= 'Поля документа:'?> <?= 'Поля документа:'?>
@ -94,4 +62,41 @@ $this->params['breadcrumbs'][] = $this->title;
], ],
]); ?> ]); ?>
<div>
<h2>
<?= 'Документ:'?>
</h2>
</div>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'title',
[
'attribute' => 'company_id',
'value' => ArrayHelper::getValue($model, 'company.name'),
],
[
'attribute' => 'manager_id',
'value' => ArrayHelper::getValue($model, 'manager.userCard.fio'),
],
[
'attribute' => 'contractor_company_id',
'value' => ArrayHelper::getValue($model, 'contractorCompany.name'),
],
[
'attribute' => 'contractor_manager_id',
'value' => ArrayHelper::getValue($model, 'contractorManager.userCard.fio'),
],
[
'attribute' => 'body',
'format' => 'raw',
],
'created_at',
'updated_at',
],
]) ?>
</div> </div>