completion of the document module

This commit is contained in:
iIronside
2022-01-10 15:22:51 +03:00
parent d31a4757ff
commit 9cabf3e7f8
17 changed files with 2409 additions and 146 deletions

View File

@ -1,6 +1,7 @@
<?php
use yii\grid\GridView;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\DetailView;
@ -34,11 +35,25 @@ $this->params['breadcrumbs'][] = $this->title;
'title',
'created_at',
'updated_at',
'template_id',
'manager_id',
[
'attribute' => 'template_id',
'value' => ArrayHelper::getValue($model,'template.title'),
],
[
'attribute' => 'manager_id',
'value' => ArrayHelper::getValue($model,'manager.userCard.fio')
],
],
]) ?>
<p>
<?= Html::a(
'Скачать файл',
['document/create-document', 'id' => $model->id],
['class' => 'btn btn-primary']
) ?>
</p>
<div>
<h2>
<?= 'Поля документа:'?>
@ -91,12 +106,4 @@ $this->params['breadcrumbs'][] = $this->title;
) ?>
</p>
<p>
<?= Html::a(
'Файл',
['document/create-document', 'id' => $model->id],
['class' => 'btn btn-primary']
) ?>
</p>
</div>