Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Junaid Rahman pv
test-project
Commits
9f2151e4
Commit
9f2151e4
authored
Sep 01, 2016
by
dianc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Category Layout Menu added
parent
31be3fa5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
13 deletions
+42
-13
CategoryController.php
backend/modules/theme/controllers/CategoryController.php
+2
-0
_form.php
backend/modules/theme/views/category/_form.php
+13
-13
layout.php
backend/modules/theme/views/category/layout.php
+27
-0
No files found.
backend/modules/theme/controllers/CategoryController.php
View file @
9f2151e4
...
@@ -63,6 +63,8 @@ class CategoryController extends Controller
...
@@ -63,6 +63,8 @@ class CategoryController extends Controller
public
function
actionCreate
()
public
function
actionCreate
()
{
{
$model
=
new
Category
();
$model
=
new
Category
();
$this
->
layout
=
'@backend/modules/theme/views/category/layout.php'
;
// $model->scenario =
$model
->
status
=
$model
::
STATUS_ACTIVE
;
$model
->
status
=
$model
::
STATUS_ACTIVE
;
...
...
backend/modules/theme/views/category/_form.php
View file @
9f2151e4
...
@@ -12,18 +12,18 @@ use trntv\filekit\widget\Upload;
...
@@ -12,18 +12,18 @@ use trntv\filekit\widget\Upload;
<div
class=
"category-form"
>
<div
class=
"category-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<ul
id=
"myTab"
class=
"nav nav-tabs"
>
<!-- <ul id="myTab" class="nav nav-tabs">--
>
<li
class=
"active"
>
<!-- <li class="active">--
>
<a
href=
"#info"
data-toggle=
"tab"
>
<!-- <a href="#info" data-toggle="tab">--
>
Info
<!-- Info-->
</a
>
<!-- </a>--
>
</li
>
<!-- </li>--
>
<li
>
<!-- <li>--
>
<a
href=
"#files"
data-toggle=
"tab"
>
<!-- <a href="#files" data-toggle="tab">--
>
Files
<!-- Files-->
</a
>
<!-- </a>--
>
</li
>
<!-- </li>--
>
</ul
>
<!-- </ul>--
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade in active"
id=
"info"
>
<div
class=
"tab-pane fade in active"
id=
"info"
>
...
@@ -83,4 +83,4 @@ use trntv\filekit\widget\Upload;
...
@@ -83,4 +83,4 @@ use trntv\filekit\widget\Upload;
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
</div>
backend/modules/theme/views/category/layout.php
0 → 100644
View file @
9f2151e4
<?php
use
yii\widgets\Menu
;
use
common\models\Category
;
/* @var $this yii\web\View */
?>
<?php
$this
->
beginContent
(
'@backend/views/layouts/main.php'
);
?>
<?=
Menu
::
widget
([
'items'
=>
[
[
'label'
=>
'Info'
,
'url'
=>
[
'category/create'
]],
[
'label'
=>
'Files'
,
'url'
=>
[
'category/update'
,
'id'
=>
''
]],
],
'options'
=>
[
'class'
=>
'nav nav-tabs'
,
'role'
=>
'tablist'
,
'id'
=>
'category-form-tab'
,
],
]);
?>
<div
id=
"myTabContent"
class=
"tab-content"
>
<?php
echo
$content
?>
</div>
<?php
$this
->
endContent
();
?>
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