add column document_type to template table

This commit is contained in:
iIronside committed 2022-01-14 15:39:09 +03:00
1 parent e09f38f24b
commit c1ff229aa7
8 files changed
+528 -5

No files matched your search

@@ -1,6 +1,7 @@
<?php
use backend\modules\document\models\DocumentField;
use common\helpers\TemplateDocumentTypeHelper;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\web\YiiAsset;
@@ -66,7 +67,12 @@ function cut_title($str)
// 'class' => 'pull-right detail-button',
]);
}
]
],
[
'attribute' => 'document_type',
'format' => 'raw',
'value' => TemplateDocumentTypeHelper::getDocumentType($model->document_type),
],
],
]) ?>