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
4e70ac93
Commit
4e70ac93
authored
Apr 28, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix
parent
6ffb9010
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common/modules/cases/views/cases-admin/_form.php
common/modules/cases/views/cases-admin/_form.php
+2
-2
common/modules/content/models/CoContent.php
common/modules/content/models/CoContent.php
+1
-1
No files found.
common/modules/cases/views/cases-admin/_form.php
View file @
4e70ac93
...
@@ -27,12 +27,12 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
...
@@ -27,12 +27,12 @@ $blocks = \common\modules\content\models\CoBlocks::find()->all();
/** @var \common\modules\content\models\CoCategory $category */
/** @var \common\modules\content\models\CoCategory $category */
$category
=
\common\modules\content\models\CoCategory
::
findOne
(
$id
);
$category
=
\common\modules\content\models\CoCategory
::
findOne
(
$id
);
if
(
!
is_null
(
$category
))
{
if
(
!
is_null
(
$category
))
{
echo
Html
::
hiddenInput
(
'CoContent[category
]'
,
$category
->
name
);
echo
Html
::
hiddenInput
(
'CoContent[category
_id]'
,
$category
->
name
,
[
'value'
=>
$id
]
);
}
}
?>
?>
<?php
<?php
if
(
$
model
->
category_id
!=
CoContent
::
BLOG
_ID
)
:
if
(
$
id
!=
CoContent
::
CASE
_ID
)
:
echo
$form
->
field
(
$model
,
'url'
)
->
textInput
([
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
echo
$form
->
field
(
$model
,
'url'
)
->
textInput
([
'maxlength'
=>
250
])
->
hint
(
'Для создания ЧПУ («Человеку Понятный Урл») укажите латинскими буквами путь, например, razdel/podrazdel/nazvanie_stranici.html'
);
else
:
else
:
/** @var CoContent[] $items */
/** @var CoContent[] $items */
...
...
common/modules/content/models/CoContent.php
View file @
4e70ac93
...
@@ -38,7 +38,7 @@ class CoContent extends \common\components\ActiveRecordModel
...
@@ -38,7 +38,7 @@ class CoContent extends \common\components\ActiveRecordModel
const
TYPE_SIMPLE
=
0
;
const
TYPE_SIMPLE
=
0
;
const
TYPE_LANDING
=
1
;
const
TYPE_LANDING
=
1
;
const
BLOG
_ID
=
4
;
const
CASE
_ID
=
4
;
const
PROJECT_ID
=
5
;
const
PROJECT_ID
=
5
;
public
$copyLangs
;
public
$copyLangs
;
...
...
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