completion of the document module
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user