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
94908c90
Commit
94908c90
authored
Apr 01, 2019
by
john
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t_3068
parent
dbf1e574
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
common/modules/documentation/views/documentation-list-admin/_form.php
...es/documentation/views/documentation-list-admin/_form.php
+1
-1
common/modules/documentation/views/documentation-list-admin/index.php
...es/documentation/views/documentation-list-admin/index.php
+1
-1
common/modules/documentation/views/documentation-list-admin/sort.php
...les/documentation/views/documentation-list-admin/sort.php
+1
-1
common/modules/documentation/views/documentation-list-admin/view.php
...les/documentation/views/documentation-list-admin/view.php
+1
-1
No files found.
common/modules/documentation/views/documentation-list-admin/_form.php
View file @
94908c90
...
@@ -50,7 +50,7 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
...
@@ -50,7 +50,7 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
<?=
$form
->
field
(
$model
,
'parent_id'
)
->
dropDownList
(
$model
->
getParentList
(
$model
),
[
'class'
=>
'form-control'
,
'prompt'
=>
'Выберите родительский раздел'
])
?>
<?=
$form
->
field
(
$model
,
'parent_id'
)
->
dropDownList
(
$model
->
getParentList
(
$model
),
[
'class'
=>
'form-control'
,
'prompt'
=>
'Выберите родительский раздел'
])
?>
<?=
<?=
$form
->
field
(
$model
,
'active'
,
[
$form
->
field
(
$model
,
'active'
,
[
'template'
=>
'{input}<a href="#" class="btn btn-xs btn-success m-l-5 disabled">Пункт меню скрыт от пользователя / Пункт меню виден для пользовател
ю
</a>'
'template'
=>
'{input}<a href="#" class="btn btn-xs btn-success m-l-5 disabled">Пункт меню скрыт от пользователя / Пункт меню виден для пользовател
я
</a>'
])
->
checkbox
([
])
->
checkbox
([
'data-theme'
=>
'self'
,
'data-theme'
=>
'self'
,
'data-render'
=>
'switchery'
,
'data-render'
=>
'switchery'
,
...
...
common/modules/documentation/views/documentation-list-admin/index.php
View file @
94908c90
...
@@ -47,7 +47,7 @@ $parentList = $searchModel->getParentList($searchModel, 0, 0, true);
...
@@ -47,7 +47,7 @@ $parentList = $searchModel->getParentList($searchModel, 0, 0, true);
[
[
'attribute'
=>
'active'
,
'attribute'
=>
'active'
,
'value'
=>
function
(
$model
)
{
'value'
=>
function
(
$model
)
{
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
ю
'
];
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
я
'
];
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
}
}
],
],
...
...
common/modules/documentation/views/documentation-list-admin/sort.php
View file @
94908c90
...
@@ -52,7 +52,7 @@ SortableGridView::widget([
...
@@ -52,7 +52,7 @@ SortableGridView::widget([
'header'
=>
$searchModel
->
getAttributeLabel
(
'active'
),
'header'
=>
$searchModel
->
getAttributeLabel
(
'active'
),
'attribute'
=>
'active'
,
'attribute'
=>
'active'
,
'value'
=>
function
(
$model
)
{
'value'
=>
function
(
$model
)
{
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
ю
'
];
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
я
'
];
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
}
}
],
],
...
...
common/modules/documentation/views/documentation-list-admin/view.php
View file @
94908c90
...
@@ -47,7 +47,7 @@ DetailView::widget([
...
@@ -47,7 +47,7 @@ DetailView::widget([
[
[
'attribute'
=>
'active'
,
'attribute'
=>
'active'
,
'value'
=>
function
(
$model
)
{
'value'
=>
function
(
$model
)
{
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
ю
'
];
$list
=
[
'0'
=>
'Пункт меню скрыт от пользователя '
,
'1'
=>
'Пункт меню виден для пользовател
я
'
];
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
return
ArrayHelper
::
getValue
(
$list
,
$model
->
active
);
}
}
],
],
...
...
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