update get-template-list method
This commit is contained in:
@ -78,7 +78,7 @@ return [
|
||||
'components' => [
|
||||
'request' => [
|
||||
'csrfParam' => '_csrf-backend',
|
||||
'baseUrl' => '', // /secure
|
||||
'baseUrl' => '/secure',
|
||||
'parsers' => [
|
||||
'application/json' => 'yii\web\JsonParser',
|
||||
'text/xml' => 'yii/web/XmlParser',
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
|
||||
use common\helpers\TemplateDocumentTypeHelper;
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
|
||||
@ -25,6 +26,14 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
'title',
|
||||
'created_at',
|
||||
'updated_at',
|
||||
[
|
||||
'attribute' => 'document_type',
|
||||
// 'format' => 'raw',
|
||||
'filter' => TemplateDocumentTypeHelper::getDocumentTypeList(),
|
||||
'value' => function($model){
|
||||
return TemplateDocumentTypeHelper::getDocumentType($model->document_type);
|
||||
}
|
||||
],
|
||||
|
||||
[
|
||||
'class' => 'yii\grid\ActionColumn',
|
||||
|
Reference in New Issue
Block a user