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
1e394749
Commit
1e394749
authored
Sep 01, 2016
by
Junaid Rahman pv
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/development' into development
parents
2b2e9f35
c6ed255b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
14 deletions
+42
-14
CategoryController.php
backend/modules/theme/controllers/CategoryController.php
+2
-0
_form.php
backend/modules/theme/views/category/_form.php
+13
-14
layout.php
backend/modules/theme/views/category/layout.php
+27
-0
No files found.
backend/modules/theme/controllers/CategoryController.php
View file @
1e394749
...
...
@@ -63,6 +63,8 @@ class CategoryController extends Controller
public
function
actionCreate
()
{
$model
=
new
Category
();
$this
->
layout
=
'@backend/modules/theme/views/category/layout.php'
;
// $model->scenario =
$model
->
status
=
$model
::
STATUS_ACTIVE
;
...
...
backend/modules/theme/views/category/_form.php
View file @
1e394749
...
...
@@ -12,19 +12,18 @@ use trntv\filekit\widget\Upload;
<div
class=
"category-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<ul
id=
"myTab"
class=
"nav nav-tabs"
>
<li
class=
"active"
>
<a
href=
"#info"
data-toggle=
"tab"
>
Info
</a>
</li>
<li>
<a
href=
"#files"
data-toggle=
"tab"
>
Files
</a>
</li>
</ul>
<!-- <ul id="myTab" class="nav nav-tabs">-->
<!-- <li class="active">-->
<!-- <a href="#info" data-toggle="tab">-->
<!-- Info-->
<!-- </a>-->
<!-- </li>-->
<!-- <li>-->
<!-- <a href="#files" data-toggle="tab">-->
<!-- Files-->
<!-- </a>-->
<!-- </li>-->
<!-- </ul>-->
<div
id=
"myTabContent"
class=
"tab-content"
>
<div
class=
"tab-pane fade in active"
id=
"info"
>
...
...
@@ -63,7 +62,7 @@ use trntv\filekit\widget\Upload;
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-
6
"
>
<div
class=
"col-md-
3
"
>
<?=
$form
->
field
(
$model
,
'status'
)
->
dropDownList
(
$model
::
statuses
(),
[
'prompt'
=>
''
])
?>
</div>
</div>
...
...
backend/modules/theme/views/category/layout.php
0 → 100644
View file @
1e394749
<?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