Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
2e8b5fee
Commit
2e8b5fee
authored
Feb 05, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix content-admin
parent
017486fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
common/modules/content/views/content-admin/index.php
common/modules/content/views/content-admin/index.php
+4
-1
No files found.
common/modules/content/views/content-admin/index.php
View file @
2e8b5fee
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\helpers\Url
;
use
yii\helpers\Url
;
use
yii\helpers\ArrayHelper
;
use
yii\grid\GridView
;
use
yii\grid\GridView
;
use
common\modules\content\models\CoCategory
;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $searchModel common\modules\content\models\SearchCoContent */
/* @var $searchModel common\modules\content\models\SearchCoContent */
...
@@ -18,7 +20,7 @@ use yii\grid\GridView;
...
@@ -18,7 +20,7 @@ use yii\grid\GridView;
<?=
\common\components\zii\AdminGrid
::
widget
([
<?=
\common\components\zii\AdminGrid
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
//
'filterModel' => $searchModel,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
'columns'
=>
[
// 'name',
// 'name',
//'url:url',
//'url:url',
...
@@ -31,6 +33,7 @@ use yii\grid\GridView;
...
@@ -31,6 +33,7 @@ use yii\grid\GridView;
],
],
[
[
'attribute'
=>
'category_id'
,
'attribute'
=>
'category_id'
,
'filter'
=>
ArrayHelper
::
map
(
CoCategory
::
find
()
->
all
(),
'id'
,
'name'
),
'format'
=>
'text'
,
'format'
=>
'text'
,
'value'
=>
function
(
$data
)
{
'value'
=>
function
(
$data
)
{
if
(
!
empty
(
$data
->
category
))
if
(
!
empty
(
$data
->
category
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment