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
470b0c23
Commit
470b0c23
authored
Aug 31, 2016
by
jomon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review changes
parent
9ee19cd3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
88 changed files
with
360 additions
and
357 deletions
+360
-357
html.php
backend/mail/layouts/html.php
+3
-3
_form.php
backend/modules/i18n/views/i18n-message/_form.php
+6
-6
_search.php
backend/modules/i18n/views/i18n-message/_search.php
+5
-5
create.php
backend/modules/i18n/views/i18n-message/create.php
+1
-1
index.php
backend/modules/i18n/views/i18n-message/index.php
+2
-2
update.php
backend/modules/i18n/views/i18n-message/update.php
+1
-1
_form.php
backend/modules/i18n/views/i18n-source-message/_form.php
+3
-3
_search.php
backend/modules/i18n/views/i18n-source-message/_search.php
+5
-5
create.php
backend/modules/i18n/views/i18n-source-message/create.php
+1
-1
index.php
backend/modules/i18n/views/i18n-source-message/index.php
+2
-2
update.php
backend/modules/i18n/views/i18n-source-message/update.php
+1
-1
view.php
backend/modules/i18n/views/i18n-source-message/view.php
+4
-4
_form.php
backend/modules/theme/views/category/_form.php
+5
-5
_search.php
backend/modules/theme/views/category/_search.php
+7
-7
create.php
backend/modules/theme/views/category/create.php
+1
-1
index.php
backend/modules/theme/views/category/index.php
+10
-10
update.php
backend/modules/theme/views/category/update.php
+1
-1
view.php
backend/modules/theme/views/category/view.php
+3
-3
controller.php
backend/views/_gii/templates/controller.php
+30
-30
search.php
backend/views/_gii/templates/search.php
+7
-7
_form.php
backend/views/_gii/templates/views/_form.php
+7
-7
_search.php
backend/views/_gii/templates/views/_search.php
+7
-7
create.php
backend/views/_gii/templates/views/create.php
+5
-5
index.php
backend/views/_gii/templates/views/index.php
+10
-10
update.php
backend/views/_gii/templates/views/update.php
+7
-7
view.php
backend/views/_gii/templates/views/view.php
+8
-8
_form.php
backend/views/article-category/_form.php
+5
-5
_search.php
backend/views/article-category/_search.php
+6
-6
create.php
backend/views/article-category/create.php
+1
-1
index.php
backend/views/article-category/index.php
+2
-2
update.php
backend/views/article-category/update.php
+1
-1
view.php
backend/views/article-category/view.php
+3
-3
_form.php
backend/views/article/_form.php
+10
-10
_search.php
backend/views/article/_search.php
+7
-7
create.php
backend/views/article/create.php
+1
-1
update.php
backend/views/article/update.php
+1
-1
index.php
backend/views/cache/index.php
+9
-9
index.php
backend/views/file-manager/index.php
+1
-1
_search.php
backend/views/file-storage/_search.php
+7
-7
index.php
backend/views/file-storage/index.php
+5
-5
view.php
backend/views/file-storage/view.php
+3
-3
_form.php
backend/views/key-storage/_form.php
+4
-4
create.php
backend/views/key-storage/create.php
+1
-1
index.php
backend/views/key-storage/index.php
+2
-2
update.php
backend/views/key-storage/update.php
+1
-1
base.php
backend/views/layouts/base.php
+8
-7
common.php
backend/views/layouts/common.php
+0
-0
main.php
backend/views/layouts/main.php
+2
-1
_search.php
backend/views/log/_search.php
+8
-8
index.php
backend/views/log/index.php
+2
-2
view.php
backend/views/log/view.php
+2
-2
_form.php
backend/views/page/_form.php
+6
-6
_search.php
backend/views/page/_search.php
+7
-7
create.php
backend/views/page/create.php
+1
-1
index.php
backend/views/page/index.php
+2
-2
update.php
backend/views/page/update.php
+1
-1
account.php
backend/views/sign-in/account.php
+5
-5
login.php
backend/views/sign-in/login.php
+5
-5
profile.php
backend/views/sign-in/profile.php
+7
-7
error.php
backend/views/site/error.php
+2
-2
settings.php
backend/views/site/settings.php
+1
-1
fail.php
backend/views/system-information/fail.php
+1
-1
index.php
backend/views/system-information/index.php
+0
-0
_item.php
backend/views/timeline-event/_item.php
+11
-10
_search.php
backend/views/timeline-event/_search.php
+5
-5
index.php
backend/views/timeline-event/index.php
+3
-3
signup.php
backend/views/timeline-event/user/signup.php
+4
-4
_form.php
backend/views/user/_form.php
+6
-6
_search.php
backend/views/user/_search.php
+10
-10
create.php
backend/views/user/create.php
+1
-1
index.php
backend/views/user/index.php
+2
-2
update.php
backend/views/user/update.php
+1
-1
view.php
backend/views/user/view.php
+3
-3
_form.php
backend/views/widget-carousel/_form.php
+3
-3
create.php
backend/views/widget-carousel/create.php
+1
-1
index.php
backend/views/widget-carousel/index.php
+2
-2
_form.php
backend/views/widget-carousel/item/_form.php
+7
-7
create.php
backend/views/widget-carousel/item/create.php
+1
-1
update.php
backend/views/widget-carousel/item/update.php
+1
-1
update.php
backend/views/widget-carousel/update.php
+3
-3
_form.php
backend/views/widget-menu/_form.php
+6
-6
create.php
backend/views/widget-menu/create.php
+1
-1
update.php
backend/views/widget-menu/update.php
+1
-1
_form.php
backend/views/widget-text/_form.php
+5
-5
_search.php
backend/views/widget-text/_search.php
+7
-7
create.php
backend/views/widget-text/create.php
+1
-1
index.php
backend/views/widget-text/index.php
+2
-2
update.php
backend/views/widget-text/update.php
+1
-1
No files found.
backend/mail/layouts/html.php
View file @
470b0c23
...
@@ -9,13 +9,13 @@ use yii\helpers\Html;
...
@@ -9,13 +9,13 @@ use yii\helpers\Html;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=
<?
php
echo
Yii
::
$app
->
charset
?>
"
/>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=
<?
=
Yii
::
$app
->
charset
?>
"
/>
<title>
<?
php
echo
Html
::
encode
(
$this
->
title
)
?>
</title>
<title>
<?
=
Html
::
encode
(
$this
->
title
)
?>
</title>
<?php
$this
->
head
()
?>
<?php
$this
->
head
()
?>
</head>
</head>
<body>
<body>
<?php
$this
->
beginBody
()
?>
<?php
$this
->
beginBody
()
?>
<?
php
echo
$content
?>
<?
=
$content
?>
<?php
$this
->
endBody
()
?>
<?php
$this
->
endBody
()
?>
</body>
</body>
</html>
</html>
...
...
backend/modules/i18n/views/i18n-message/_form.php
View file @
470b0c23
...
@@ -12,19 +12,19 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,19 +12,19 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
->
textInput
([
'disabled'
=>!
$model
->
isNewRecord
])
?>
<?
=
$form
->
field
(
$model
,
'id'
)
->
textInput
([
'disabled'
=>!
$model
->
isNewRecord
])
?>
<?php
if
(
!
$model
->
isNewRecord
)
:
?>
<?php
if
(
!
$model
->
isNewRecord
)
:
?>
<?
php
echo
$form
->
field
(
$model
,
'category'
)
->
textInput
([
'disabled'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'category'
)
->
textInput
([
'disabled'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'sourceMessage'
)
->
textInput
([
'disabled'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'sourceMessage'
)
->
textInput
([
'disabled'
=>
true
])
?>
<?php
endif
;
?>
<?php
endif
;
?>
<?
php
echo
$form
->
field
(
$model
,
'language'
)
->
textInput
([
'maxlength'
=>
16
])
?>
<?
=
$form
->
field
(
$model
,
'language'
)
->
textInput
([
'maxlength'
=>
16
])
?>
<?
php
echo
$form
->
field
(
$model
,
'translation'
)
->
textarea
([
'rows'
=>
6
])
?>
<?
=
$form
->
field
(
$model
,
'translation'
)
->
textarea
([
'rows'
=>
6
])
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/i18n/views/i18n-message/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'language'
)
?>
<?
=
$form
->
field
(
$model
,
'language'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'translation'
)
?>
<?
=
$form
->
field
(
$model
,
'translation'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/i18n/views/i18n-message/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"i18n-message-create"
>
<div
class=
"i18n-message-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/modules/i18n/views/i18n-message/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
//echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
//echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'I18n Message'
,
'modelClass'
=>
'I18n Message'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/modules/i18n/views/i18n-message/update.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"i18n-message-update"
>
<div
class=
"i18n-message-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/modules/i18n/views/i18n-source-message/_form.php
View file @
470b0c23
...
@@ -12,12 +12,12 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,12 +12,12 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'category'
)
->
textInput
([
'maxlength'
=>
32
])
?>
<?
=
$form
->
field
(
$model
,
'category'
)
->
textInput
([
'maxlength'
=>
32
])
?>
<?
php
echo
$form
->
field
(
$model
,
'message'
)
->
textarea
([
'rows'
=>
6
])
?>
<?
=
$form
->
field
(
$model
,
'message'
)
->
textarea
([
'rows'
=>
6
])
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/i18n/views/i18n-source-message/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'category'
)
?>
<?
=
$form
->
field
(
$model
,
'category'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'message'
)
?>
<?
=
$form
->
field
(
$model
,
'message'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/i18n/views/i18n-source-message/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"i18n-source-message-create"
>
<div
class=
"i18n-source-message-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/modules/i18n/views/i18n-source-message/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'I18n Source Message'
,
'modelClass'
=>
'I18n Source Message'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/modules/i18n/views/i18n-source-message/update.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"i18n-source-message-update"
>
<div
class=
"i18n-source-message-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/modules/i18n/views/i18n-source-message/view.php
View file @
470b0c23
...
@@ -12,11 +12,11 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -12,11 +12,11 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"i18n-source-message-view"
>
<div
class=
"i18n-source-message-view"
>
<h1>
<?
php
echo
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?
=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
...
@@ -25,7 +25,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -25,7 +25,7 @@ $this->params['breadcrumbs'][] = $this->title;
])
?>
])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/modules/theme/views/category/_form.php
View file @
470b0c23
...
@@ -13,23 +13,23 @@ use trntv\filekit\widget\Upload;
...
@@ -13,23 +13,23 @@ use trntv\filekit\widget\Upload;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
errorSummary
(
$model
);
?>
<?
=
$form
->
errorSummary
(
$model
);
?>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<?
php
echo
$form
->
field
(
$model
,
'name'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'name'
)
->
textInput
([
'maxlength'
=>
true
])
?>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
->
textInput
([
'maxlength'
=>
true
])
?>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-3"
>
<div
class=
"col-md-3"
>
<?
php
echo
$form
->
field
(
$model
,
'description'
)
->
textarea
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'description'
)
->
textarea
([
'maxlength'
=>
true
])
?>
</div>
</div>
</div>
</div>
...
@@ -52,7 +52,7 @@ use trntv\filekit\widget\Upload;
...
@@ -52,7 +52,7 @@ use trntv\filekit\widget\Upload;
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/modules/theme/views/category/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'name'
)
?>
<?
=
$form
->
field
(
$model
,
'name'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'description'
)
?>
<?
=
$form
->
field
(
$model
,
'description'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'image_url'
)
?>
<?
=
$form
->
field
(
$model
,
'image_url'
)
?>
<?php
// echo $form->field($model, 'image_path') ?>
<?php
// echo $form->field($model, 'image_path') ?>
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
<?
php
// echo $form->field($model, 'updated_at') ?>
<?
php
// echo $form->field($model, 'updated_at') ?>
<
div
class
="
form
-
group
">
<
div
class
="
form
-
group
">
<?
php echo
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
=
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
php echo
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
<?
=
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
<?php ActiveForm::end(); ?>
...
...
backend/modules/theme/views/category/create.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"category-create"
>
<div
class=
"category-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/modules/theme/views/category/index.php
View file @
470b0c23
...
@@ -17,32 +17,32 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -17,32 +17,32 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Category'
,
'modelClass'
=>
'Category'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
[
'class'
=>
'yii\grid\SerialColumn'
],
//
'id',
//
'id',
'name'
,
'name'
,
//
'slug',
//
'slug',
'description'
,
'description'
,
//
'image_url:url',
//
'image_url:url',
//
'image_path',
//
'image_path',
[
[
'class'
=>
EnumColumn
::
className
(),
'class'
=>
EnumColumn
::
className
(),
'attribute'
=>
'status'
,
'attribute'
=>
'status'
,
'enum'
=>
Category
::
statuses
(),
'enum'
=>
Category
::
statuses
(),
'filter'
=>
Category
::
statuses
()
'filter'
=>
Category
::
statuses
()
],
],
//
'status',
'status'
,
//
'created_at',
'created_at'
,
//
'updated_at',
//
'updated_at',
[
'class'
=>
'yii\grid\ActionColumn'
],
[
'class'
=>
'yii\grid\ActionColumn'
],
],
],
...
...
backend/modules/theme/views/category/update.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"category-update"
>
<div
class=
"category-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/modules/theme/views/category/view.php
View file @
470b0c23
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"category-view"
>
<div
class=
"category-view"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
])
?>
])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/views/_gii/templates/controller.php
View file @
470b0c23
...
@@ -27,23 +27,23 @@ $actionParamComments = $generator->generateActionParamComments();
...
@@ -27,23 +27,23 @@ $actionParamComments = $generator->generateActionParamComments();
echo
"<?php
\n
"
;
echo
"<?php
\n
"
;
?>
?>
namespace
<?
php
echo
StringHelper
::
dirname
(
ltrim
(
$generator
->
controllerClass
,
'\\'
))
?>
;
namespace
<?
=
StringHelper
::
dirname
(
ltrim
(
$generator
->
controllerClass
,
'\\'
))
?>
;
use Yii;
use Yii;
use
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
;
use
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
;
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
use
<?
php
echo
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
.
(
isset
(
$searchModelAlias
)
?
" as
$searchModelAlias
"
:
""
)
?>
;
use
<?
=
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
.
(
isset
(
$searchModelAlias
)
?
" as
$searchModelAlias
"
:
""
)
?>
;
<?php
else
:
?>
<?php
else
:
?>
use yii\data\ActiveDataProvider;
use yii\data\ActiveDataProvider;
<?php
endif
;
?>
<?php
endif
;
?>
use
<?
php
echo
ltrim
(
$generator
->
baseControllerClass
,
'\\'
)
?>
;
use
<?
=
ltrim
(
$generator
->
baseControllerClass
,
'\\'
)
?>
;
use yii\web\NotFoundHttpException;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\filters\VerbFilter;
/**
/**
*
<?
php
echo
$controllerClass
?>
implements the CRUD actions for
<?php
echo
$modelClass
?>
model.
*
<?
=
$controllerClass
?>
implements the CRUD actions for
<?=
$modelClass
?>
model.
*/
*/
class
<?
php
echo
$controllerClass
?>
extends
<?php
echo
StringHelper
::
basename
(
$generator
->
baseControllerClass
)
.
"
\n
"
?>
class
<?
=
$controllerClass
?>
extends
<?=
StringHelper
::
basename
(
$generator
->
baseControllerClass
)
.
"
\n
"
?>
{
{
public function behaviors()
public function behaviors()
{
{
...
@@ -58,13 +58,13 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
...
@@ -58,13 +58,13 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
}
}
/**
/**
* Lists all
<?
php
echo
$modelClass
?>
models.
* Lists all
<?
=
$modelClass
?>
models.
* @return mixed
* @return mixed
*/
*/
public function actionIndex()
public function actionIndex()
{
{
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
$searchModel = new
<?
php
echo
isset
(
$searchModelAlias
)
?
$searchModelAlias
:
$searchModelClass
?>
();
$searchModel = new
<?
=
isset
(
$searchModelAlias
)
?
$searchModelAlias
:
$searchModelClass
?>
();
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
$dataProvider = $searchModel->search(Yii::$app->request->queryParams);
return $this->render('index', [
return $this->render('index', [
...
@@ -73,7 +73,7 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
...
@@ -73,7 +73,7 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
]);
]);
<?php
else
:
?>
<?php
else
:
?>
$dataProvider = new ActiveDataProvider([
$dataProvider = new ActiveDataProvider([
'query' =>
<?
php
echo
$modelClass
?>
::find(),
'query' =>
<?
=
$modelClass
?>
::find(),
]);
]);
return $this->render('index', [
return $this->render('index', [
...
@@ -83,28 +83,28 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
...
@@ -83,28 +83,28 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
}
}
/**
/**
* Displays a single
<?
php
echo
$modelClass
?>
model.
* Displays a single
<?
=
$modelClass
?>
model.
*
<?
php
echo
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
*
<?
=
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
* @return mixed
* @return mixed
*/
*/
public function actionView(
<?
php
echo
$actionParams
?>
)
public function actionView(
<?
=
$actionParams
?>
)
{
{
return $this->render('view', [
return $this->render('view', [
'model' => $this->findModel(
<?
php
echo
$actionParams
?>
),
'model' => $this->findModel(
<?
=
$actionParams
?>
),
]);
]);
}
}
/**
/**
* Creates a new
<?
php
echo
$modelClass
?>
model.
* Creates a new
<?
=
$modelClass
?>
model.
* If creation is successful, the browser will be redirected to the 'view' page.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @return mixed
*/
*/
public function actionCreate()
public function actionCreate()
{
{
$model = new
<?
php
echo
$modelClass
?>
();
$model = new
<?
=
$modelClass
?>
();
if ($model->load(Yii::$app->request->post())
&&
$model->save()) {
if ($model->load(Yii::$app->request->post())
&&
$model->save()) {
return $this->redirect(['view',
<?
php
echo
$urlParams
?>
]);
return $this->redirect(['view',
<?
=
$urlParams
?>
]);
} else {
} else {
return $this->render('create', [
return $this->render('create', [
'model' => $model,
'model' => $model,
...
@@ -113,17 +113,17 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
...
@@ -113,17 +113,17 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
}
}
/**
/**
* Updates an existing
<?
php
echo
$modelClass
?>
model.
* Updates an existing
<?
=
$modelClass
?>
model.
* If update is successful, the browser will be redirected to the 'view' page.
* If update is successful, the browser will be redirected to the 'view' page.
*
<?
php
echo
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
*
<?
=
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
* @return mixed
* @return mixed
*/
*/
public function actionUpdate(
<?
php
echo
$actionParams
?>
)
public function actionUpdate(
<?
=
$actionParams
?>
)
{
{
$model = $this->findModel(
<?
php
echo
$actionParams
?>
);
$model = $this->findModel(
<?
=
$actionParams
?>
);
if ($model->load(Yii::$app->request->post())
&&
$model->save()) {
if ($model->load(Yii::$app->request->post())
&&
$model->save()) {
return $this->redirect(['view',
<?
php
echo
$urlParams
?>
]);
return $this->redirect(['view',
<?
=
$urlParams
?>
]);
} else {
} else {
return $this->render('update', [
return $this->render('update', [
'model' => $model,
'model' => $model,
...
@@ -132,26 +132,26 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
...
@@ -132,26 +132,26 @@ class <?php echo $controllerClass ?> extends <?php echo StringHelper::basename($
}
}
/**
/**
* Deletes an existing
<?
php
echo
$modelClass
?>
model.
* Deletes an existing
<?
=
$modelClass
?>
model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* If deletion is successful, the browser will be redirected to the 'index' page.
*
<?
php
echo
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
*
<?
=
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
* @return mixed
* @return mixed
*/
*/
public function actionDelete(
<?
php
echo
$actionParams
?>
)
public function actionDelete(
<?
=
$actionParams
?>
)
{
{
$this->findModel(
<?
php
echo
$actionParams
?>
)->delete();
$this->findModel(
<?
=
$actionParams
?>
)->delete();
return $this->redirect(['index']);
return $this->redirect(['index']);
}
}
/**
/**
* Finds the
<?
php
echo
$modelClass
?>
model based on its primary key value.
* Finds the
<?
=
$modelClass
?>
model based on its primary key value.
* If the model is not found, a 404 HTTP exception will be thrown.
* If the model is not found, a 404 HTTP exception will be thrown.
*
<?
php
echo
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
*
<?
=
implode
(
"
\n
* "
,
$actionParamComments
)
.
"
\n
"
?>
* @return
<?
php
echo
$modelClass
?>
the loaded model
* @return
<?
=
$modelClass
?>
the loaded model
* @throws NotFoundHttpException if the model cannot be found
* @throws NotFoundHttpException if the model cannot be found
*/
*/
protected function findModel(
<?
php
echo
$actionParams
?>
)
protected function findModel(
<?
=
$actionParams
?>
)
{
{
<?php
<?php
if
(
count
(
$pks
)
===
1
)
{
if
(
count
(
$pks
)
===
1
)
{
...
@@ -164,7 +164,7 @@ if (count($pks) === 1) {
...
@@ -164,7 +164,7 @@ if (count($pks) === 1) {
$condition
=
'['
.
implode
(
', '
,
$condition
)
.
']'
;
$condition
=
'['
.
implode
(
', '
,
$condition
)
.
']'
;
}
}
?>
?>
if (($model =
<?
php
echo
$modelClass
?>
::findOne(
<?php
echo
$condition
?>
)) !== null) {
if (($model =
<?
=
$modelClass
?>
::findOne(
<?=
$condition
?>
)) !== null) {
return $model;
return $model;
} else {
} else {
throw new NotFoundHttpException('The requested page does not exist.');
throw new NotFoundHttpException('The requested page does not exist.');
...
...
backend/views/_gii/templates/search.php
View file @
470b0c23
...
@@ -22,17 +22,17 @@ $searchConditions = $generator->generateSearchConditions();
...
@@ -22,17 +22,17 @@ $searchConditions = $generator->generateSearchConditions();
echo
"<?php
\n
"
;
echo
"<?php
\n
"
;
?>
?>
namespace
<?
php
echo
StringHelper
::
dirname
(
ltrim
(
$generator
->
searchModelClass
,
'\\'
))
?>
;
namespace
<?
=
StringHelper
::
dirname
(
ltrim
(
$generator
->
searchModelClass
,
'\\'
))
?>
;
use Yii;
use Yii;
use yii\base\Model;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use yii\data\ActiveDataProvider;
use
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
.
(
isset
(
$modelAlias
)
?
" as
$modelAlias
"
:
""
)
?>
;
use
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
.
(
isset
(
$modelAlias
)
?
" as
$modelAlias
"
:
""
)
?>
;
/**
/**
*
<?
php
echo
$searchModelClass
?>
represents the model behind the search form about `
<?php
echo
$generator
->
modelClass
?>
`.
*
<?
=
$searchModelClass
?>
represents the model behind the search form about `
<?=
$generator
->
modelClass
?>
`.
*/
*/
class
<?
php
echo
$searchModelClass
?>
extends
<?php
echo
isset
(
$modelAlias
)
?
$modelAlias
:
$modelClass
?>
class
<?
=
$searchModelClass
?>
extends
<?=
isset
(
$modelAlias
)
?
$modelAlias
:
$modelClass
?>
{
{
/**
/**
...
@@ -41,7 +41,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
...
@@ -41,7 +41,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
public function rules()
public function rules()
{
{
return [
return [
<?
php
echo
implode
(
",
\n
"
,
$rules
)
?>
,
<?
=
implode
(
",
\n
"
,
$rules
)
?>
,
];
];
}
}
...
@@ -63,7 +63,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
...
@@ -63,7 +63,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
*/
*/
public function search($params)
public function search($params)
{
{
$query =
<?
php
echo
isset
(
$modelAlias
)
?
$modelAlias
:
$modelClass
?>
::find();
$query =
<?
=
isset
(
$modelAlias
)
?
$modelAlias
:
$modelClass
?>
::find();
$dataProvider = new ActiveDataProvider([
$dataProvider = new ActiveDataProvider([
'query' => $query,
'query' => $query,
...
@@ -73,7 +73,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
...
@@ -73,7 +73,7 @@ class <?php echo $searchModelClass ?> extends <?php echo isset($modelAlias) ? $m
return $dataProvider;
return $dataProvider;
}
}
<?
php
echo
implode
(
"
\n
"
,
$searchConditions
)
?>
<?
=
implode
(
"
\n
"
,
$searchConditions
)
?>
return $dataProvider;
return $dataProvider;
}
}
...
...
backend/views/_gii/templates/views/_form.php
View file @
470b0c23
...
@@ -20,25 +20,25 @@ use yii\helpers\Html;
...
@@ -20,25 +20,25 @@ use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
/* @var $model
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
/* @var $form yii\bootstrap\ActiveForm */
/* @var $form yii\bootstrap\ActiveForm */
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-form"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-form"
>
<?
php
echo
"<?php "
?>
$form = ActiveForm::begin(); ?>
<?
=
"<?php "
?>
$form = ActiveForm::begin(); ?>
<?
php
echo
"<?php echo
"
?>
$form->errorSummary($model); ?>
<?
=
"<?=
"
?>
$form->errorSummary($model); ?>
<?php
foreach
(
$generator
->
getColumnNames
()
as
$attribute
)
{
<?php
foreach
(
$generator
->
getColumnNames
()
as
$attribute
)
{
if
(
in_array
(
$attribute
,
$safeAttributes
))
{
if
(
in_array
(
$attribute
,
$safeAttributes
))
{
echo
" <?
php echo
"
.
$generator
->
generateActiveField
(
$attribute
)
.
" ?>
\n\n
"
;
echo
" <?
=
"
.
$generator
->
generateActiveField
(
$attribute
)
.
" ?>
\n\n
"
;
}
}
}
?>
}
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
"<?php echo "
?>
Html::submitButton($model->isNewRecord ?
<?php
echo
$generator
->
generateString
(
'Create'
)
?>
:
<?php
echo
$generator
->
generateString
(
'Update'
)
?>
, ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
<?
=
"<?= "
?>
Html::submitButton($model->isNewRecord ?
<?=
$generator
->
generateString
(
'Create'
)
?>
:
<?=
$generator
->
generateString
(
'Update'
)
?>
, ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
</div>
<?
php
echo
"<?php "
?>
ActiveForm::end(); ?>
<?
=
"<?php "
?>
ActiveForm::end(); ?>
</div>
</div>
backend/views/_gii/templates/views/_search.php
View file @
470b0c23
...
@@ -13,13 +13,13 @@ use yii\helpers\Html;
...
@@ -13,13 +13,13 @@ use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model
<?
php
echo
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
?>
*/
/* @var $model
<?
=
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
?>
*/
/* @var $form yii\bootstrap\ActiveForm */
/* @var $form yii\bootstrap\ActiveForm */
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-search"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-search"
>
<?
php
echo
"<?php "
?>
$form = ActiveForm::begin([
<?
=
"<?php "
?>
$form = ActiveForm::begin([
'action' => ['index'],
'action' => ['index'],
'method' => 'get',
'method' => 'get',
]); ?>
]); ?>
...
@@ -28,17 +28,17 @@ use yii\bootstrap\ActiveForm;
...
@@ -28,17 +28,17 @@ use yii\bootstrap\ActiveForm;
$count
=
0
;
$count
=
0
;
foreach
(
$generator
->
getColumnNames
()
as
$attribute
)
{
foreach
(
$generator
->
getColumnNames
()
as
$attribute
)
{
if
(
++
$count
<
6
)
{
if
(
++
$count
<
6
)
{
echo
" <?
php echo
"
.
$generator
->
generateActiveSearchField
(
$attribute
)
.
" ?>
\n\n
"
;
echo
" <?
=
"
.
$generator
->
generateActiveSearchField
(
$attribute
)
.
" ?>
\n\n
"
;
}
else
{
}
else
{
echo
" <?php // echo "
.
$generator
->
generateActiveSearchField
(
$attribute
)
.
" ?>
\n\n
"
;
echo
" <?php // echo "
.
$generator
->
generateActiveSearchField
(
$attribute
)
.
" ?>
\n\n
"
;
}
}
}
}
?>
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
"<?php echo "
?>
Html::submitButton(
<?php
echo
$generator
->
generateString
(
'Search'
)
?>
, ['class' => 'btn btn-primary']) ?>
<?
=
"<?= "
?>
Html::submitButton(
<?=
$generator
->
generateString
(
'Search'
)
?>
, ['class' => 'btn btn-primary']) ?>
<?
php
echo
"<?php echo "
?>
Html::resetButton(
<?php
echo
$generator
->
generateString
(
'Reset'
)
?>
, ['class' => 'btn btn-default']) ?>
<?
=
"<?= "
?>
Html::resetButton(
<?=
$generator
->
generateString
(
'Reset'
)
?>
, ['class' => 'btn btn-default']) ?>
</div>
</div>
<?
php
echo
"<?php "
?>
ActiveForm::end(); ?>
<?
=
"<?php "
?>
ActiveForm::end(); ?>
</div>
</div>
backend/views/_gii/templates/views/create.php
View file @
470b0c23
...
@@ -13,15 +13,15 @@ use yii\helpers\Html;
...
@@ -13,15 +13,15 @@ use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
/* @var $model
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
$this->title =
<?
php
echo
$generator
->
generateString
(
'Create {modelClass}'
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
;
$this->title =
<?
=
$generator
->
generateString
(
'Create {modelClass}'
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
;
$this->params['breadcrumbs'][] = ['label' =>
<?
php
echo
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' =>
<?
=
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-create"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-create"
>
<?
php
echo
"<?php echo
"
?>
$this->render('_form', [
<?
=
"<?=
"
?>
$this->render('_form', [
'model' => $model,
'model' => $model,
]) ?>
]) ?>
...
...
backend/views/_gii/templates/views/index.php
View file @
470b0c23
...
@@ -13,29 +13,29 @@ echo "<?php\n";
...
@@ -13,29 +13,29 @@ echo "<?php\n";
?>
?>
use yii\helpers\Html;
use yii\helpers\Html;
use
<?
php
echo
$generator
->
indexWidgetType
===
'grid'
?
"yii
\\
grid
\\
GridView"
:
"yii
\\
widgets
\\
ListView"
?>
;
use
<?
=
$generator
->
indexWidgetType
===
'grid'
?
"yii
\\
grid
\\
GridView"
:
"yii
\\
widgets
\\
ListView"
?>
;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
<?
php
echo
!
empty
(
$generator
->
searchModelClass
)
?
"/* @var
\$
searchModel "
.
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
.
" */
\n
"
:
''
?>
<?
=
!
empty
(
$generator
->
searchModelClass
)
?
"/* @var
\$
searchModel "
.
ltrim
(
$generator
->
searchModelClass
,
'\\'
)
.
" */
\n
"
:
''
?>
/* @var $dataProvider yii\data\ActiveDataProvider */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title =
<?
php
echo
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
;
$this->title =
<?
=
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
;
$this->params['breadcrumbs'][] = $this->title;
$this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-index"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-index"
>
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
<?php
if
(
!
empty
(
$generator
->
searchModelClass
))
:
?>
<?
php
echo
" <?php "
.
(
$generator
->
indexWidgetType
===
'grid'
?
"// "
:
""
)
?>
echo $this->render('_search', ['model' => $searchModel]); ?>
<?
=
" <?php "
.
(
$generator
->
indexWidgetType
===
'grid'
?
"// "
:
""
)
?>
echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
endif
;
?>
<?php
endif
;
?>
<p>
<p>
<?
php
echo
"<?php echo "
?>
Html::a(
<?php
echo
$generator
->
generateString
(
'Create {modelClass}'
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
, ['create'], ['class' => 'btn btn-success']) ?>
<?
=
"<?= "
?>
Html::a(
<?=
$generator
->
generateString
(
'Create {modelClass}'
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
, ['create'], ['class' => 'btn btn-success']) ?>
</p>
</p>
<?php
if
(
$generator
->
indexWidgetType
===
'grid'
)
:
?>
<?php
if
(
$generator
->
indexWidgetType
===
'grid'
)
:
?>
<?
php
echo
"<?php echo
"
?>
GridView::widget([
<?
=
"<?=
"
?>
GridView::widget([
'dataProvider' => $dataProvider,
'dataProvider' => $dataProvider,
<?
php
echo
!
empty
(
$generator
->
searchModelClass
)
?
"'filterModel' =>
\$
searchModel,
\n
'columns' => [
\n
"
:
"'columns' => [
\n
"
;
?>
<?
=
!
empty
(
$generator
->
searchModelClass
)
?
"'filterModel' =>
\$
searchModel,
\n
'columns' => [
\n
"
:
"'columns' => [
\n
"
;
?>
['class' => 'yii\grid\SerialColumn'],
['class' => 'yii\grid\SerialColumn'],
<?php
<?php
...
@@ -64,11 +64,11 @@ if (($tableSchema = $generator->getTableSchema()) === false) {
...
@@ -64,11 +64,11 @@ if (($tableSchema = $generator->getTableSchema()) === false) {
],
],
]); ?>
]); ?>
<?php
else
:
?>
<?php
else
:
?>
<?
php
echo
"<?php echo
"
?>
ListView::widget([
<?
=
"<?=
"
?>
ListView::widget([
'dataProvider' => $dataProvider,
'dataProvider' => $dataProvider,
'itemOptions' => ['class' => 'item'],
'itemOptions' => ['class' => 'item'],
'itemView' => function ($model, $key, $index, $widget) {
'itemView' => function ($model, $key, $index, $widget) {
return Html::a(Html::encode($model->
<?
php
echo
$nameAttribute
?>
), ['view',
<?php
echo
$urlParams
?>
]);
return Html::a(Html::encode($model->
<?
=
$nameAttribute
?>
), ['view',
<?=
$urlParams
?>
]);
},
},
]) ?>
]) ?>
<?php
endif
;
?>
<?php
endif
;
?>
...
...
backend/views/_gii/templates/views/update.php
View file @
470b0c23
...
@@ -14,16 +14,16 @@ echo "<?php\n";
...
@@ -14,16 +14,16 @@ echo "<?php\n";
use yii\helpers\Html;
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
/* @var $model
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
$this->title =
<?
php
echo
$generator
->
generateString
(
'Update {modelClass}: '
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
. ' ' . $model->
<?php
echo
$generator
->
getNameAttribute
()
?>
;
$this->title =
<?
=
$generator
->
generateString
(
'Update {modelClass}: '
,
[
'modelClass'
=>
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))])
?>
. ' ' . $model->
<?=
$generator
->
getNameAttribute
()
?>
;
$this->params['breadcrumbs'][] = ['label' =>
<?
php
echo
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' =>
<?
=
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->
<?
php
echo
$generator
->
getNameAttribute
()
?>
, 'url' => ['view',
<?php
echo
$urlParams
?>
]];
$this->params['breadcrumbs'][] = ['label' => $model->
<?
=
$generator
->
getNameAttribute
()
?>
, 'url' => ['view',
<?=
$urlParams
?>
]];
$this->params['breadcrumbs'][] =
<?
php
echo
$generator
->
generateString
(
'Update'
)
?>
;
$this->params['breadcrumbs'][] =
<?
=
$generator
->
generateString
(
'Update'
)
?>
;
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-update"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-update"
>
<?
php
echo
"<?php echo
"
?>
$this->render('_form', [
<?
=
"<?=
"
?>
$this->render('_form', [
'model' => $model,
'model' => $model,
]) ?>
]) ?>
...
...
backend/views/_gii/templates/views/view.php
View file @
470b0c23
...
@@ -15,26 +15,26 @@ use yii\helpers\Html;
...
@@ -15,26 +15,26 @@ use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $this yii\web\View */
/* @var $model
<?
php
echo
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
/* @var $model
<?
=
ltrim
(
$generator
->
modelClass
,
'\\'
)
?>
*/
$this->title = $model->
<?
php
echo
$generator
->
getNameAttribute
()
?>
;
$this->title = $model->
<?
=
$generator
->
getNameAttribute
()
?>
;
$this->params['breadcrumbs'][] = ['label' =>
<?
php
echo
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' =>
<?
=
$generator
->
generateString
(
Inflector
::
pluralize
(
Inflector
::
camel2words
(
StringHelper
::
basename
(
$generator
->
modelClass
))))
?>
, 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"
<?
php
echo
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-view"
>
<div
class=
"
<?
=
Inflector
::
camel2id
(
StringHelper
::
basename
(
$generator
->
modelClass
))
?>
-view"
>
<p>
<p>
<?
php
echo
"<?php echo "
?>
Html::a(
<?php
echo
$generator
->
generateString
(
'Update'
)
?>
, ['update',
<?php
echo
$urlParams
?>
], ['class' => 'btn btn-primary']) ?>
<?
=
"<?= "
?>
Html::a(
<?=
$generator
->
generateString
(
'Update'
)
?>
, ['update',
<?=
$urlParams
?>
], ['class' => 'btn btn-primary']) ?>
<?
php
echo
"<?php echo "
?>
Html::a(
<?php
echo
$generator
->
generateString
(
'Delete'
)
?>
, ['delete',
<?php
echo
$urlParams
?>
], [
<?
=
"<?= "
?>
Html::a(
<?=
$generator
->
generateString
(
'Delete'
)
?>
, ['delete',
<?=
$urlParams
?>
], [
'class' => 'btn btn-danger',
'class' => 'btn btn-danger',
'data' => [
'data' => [
'confirm' =>
<?
php
echo
$generator
->
generateString
(
'Are you sure you want to delete this item?'
)
?>
,
'confirm' =>
<?
=
$generator
->
generateString
(
'Are you sure you want to delete this item?'
)
?>
,
'method' => 'post',
'method' => 'post',
],
],
]) ?>
]) ?>
</p>
</p>
<?
php
echo
"<?php echo
"
?>
DetailView::widget([
<?
=
"<?=
"
?>
DetailView::widget([
'model' => $model,
'model' => $model,
'attributes' => [
'attributes' => [
<?php
<?php
...
...
backend/views/article-category/_form.php
View file @
470b0c23
...
@@ -13,18 +13,18 @@ use yii\bootstrap\ActiveForm;
...
@@ -13,18 +13,18 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
=
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
<?
=
$form
->
field
(
$model
,
'slug'
)
->
hint
(
Yii
::
t
(
'backend'
,
'If you\'ll leave this field empty, slug will be generated automatically'
))
->
hint
(
Yii
::
t
(
'backend'
,
'If you\'ll leave this field empty, slug will be generated automatically'
))
->
textInput
([
'maxlength'
=>
1024
])
?>
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
php
echo
$form
->
field
(
$model
,
'parent_id'
)
->
dropDownList
(
$categories
,
[
'prompt'
=>
''
])
?>
<?
=
$form
->
field
(
$model
,
'parent_id'
)
->
dropDownList
(
$categories
,
[
'prompt'
=>
''
])
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/article-category/_search.php
View file @
470b0c23
...
@@ -15,17 +15,17 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,17 +15,17 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
?>
<?
=
$form
->
field
(
$model
,
'title'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
?>
<?
=
$form
->
field
(
$model
,
'status'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/article-category/create.php
View file @
470b0c23
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"article-category-create"
>
<div
class=
"article-category-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'categories'
=>
$categories
'categories'
=>
$categories
])
?>
])
?>
...
...
backend/views/article-category/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Article Category'
,
'modelClass'
=>
'Article Category'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/article-category/update.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"article-category-update"
>
<div
class=
"article-category-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
])
?>
])
?>
...
...
backend/views/article-category/view.php
View file @
470b0c23
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"article-category-view"
>
<div
class=
"article-category-view"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
])
?>
])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/views/article/_form.php
View file @
470b0c23
...
@@ -15,19 +15,19 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,19 +15,19 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
<?
=
$form
->
field
(
$model
,
'slug'
)
->
hint
(
Yii
::
t
(
'backend'
,
'If you\'ll leave this field empty, slug will be generated automatically'
))
->
hint
(
Yii
::
t
(
'backend'
,
'If you\'ll leave this field empty, slug will be generated automatically'
))
->
textInput
([
'maxlength'
=>
true
])
?>
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'category_id'
)
->
dropDownList
(
\yii\helpers\ArrayHelper
::
map
(
<?
=
$form
->
field
(
$model
,
'category_id'
)
->
dropDownList
(
\yii\helpers\ArrayHelper
::
map
(
$categories
,
$categories
,
'id'
,
'id'
,
'title'
'title'
),
[
'prompt'
=>
''
])
?>
),
[
'prompt'
=>
''
])
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'body'
)
->
widget
(
\yii\imperavi\Widget
::
className
(),
\yii\imperavi\Widget
::
className
(),
[
[
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
...
@@ -42,7 +42,7 @@ use yii\bootstrap\ActiveForm;
...
@@ -42,7 +42,7 @@ use yii\bootstrap\ActiveForm;
]
]
)
?>
)
?>
<?
php
echo
$form
->
field
(
$model
,
'thumbnail'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'thumbnail'
)
->
widget
(
Upload
::
className
(),
Upload
::
className
(),
[
[
'url'
=>
[
'/file-storage/upload'
],
'url'
=>
[
'/file-storage/upload'
],
...
@@ -50,7 +50,7 @@ use yii\bootstrap\ActiveForm;
...
@@ -50,7 +50,7 @@ use yii\bootstrap\ActiveForm;
]);
]);
?>
?>
<?
php
echo
$form
->
field
(
$model
,
'attachments'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'attachments'
)
->
widget
(
Upload
::
className
(),
Upload
::
className
(),
[
[
'url'
=>
[
'/file-storage/upload'
],
'url'
=>
[
'/file-storage/upload'
],
...
@@ -60,11 +60,11 @@ use yii\bootstrap\ActiveForm;
...
@@ -60,11 +60,11 @@ use yii\bootstrap\ActiveForm;
]);
]);
?>
?>
<?
php
echo
$form
->
field
(
$model
,
'view'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'view'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
php
echo
$form
->
field
(
$model
,
'published_at'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'published_at'
)
->
widget
(
DateTimeWidget
::
className
(),
DateTimeWidget
::
className
(),
[
[
'phpDatetimeFormat'
=>
'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ'
'phpDatetimeFormat'
=>
'yyyy-MM-dd\'T\'HH:mm:ssZZZZZ'
...
@@ -72,7 +72,7 @@ use yii\bootstrap\ActiveForm;
...
@@ -72,7 +72,7 @@ use yii\bootstrap\ActiveForm;
)
?>
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
...
...
backend/views/article/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
?>
<?
=
$form
->
field
(
$model
,
'title'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
?>
<?
=
$form
->
field
(
$model
,
'body'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'user_id'
)
?>
<?
=
$form
->
field
(
$model
,
'user_id'
)
?>
<?php
// echo $form->field($model, 'status') ?>
<?php
// echo $form->field($model, 'status') ?>
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
<?
php
// echo $form->field($model, 'updated_at') ?>
<?
php
// echo $form->field($model, 'updated_at') ?>
<
div
class
="
form
-
group
">
<
div
class
="
form
-
group
">
<?
php echo
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
=
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
php echo
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
<?
=
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
<?php ActiveForm::end(); ?>
...
...
backend/views/article/create.php
View file @
470b0c23
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"article-create"
>
<div
class=
"article-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'categories'
=>
$categories
'categories'
=>
$categories
])
?>
])
?>
...
...
backend/views/article/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"article-update"
>
<div
class=
"article-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
])
?>
])
?>
...
...
backend/views/cache/index.php
View file @
470b0c23
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -11,7 +11,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"article-index"
>
<div
class=
"article-index"
>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'columns'
=>
[
'columns'
=>
[
'name'
,
'name'
,
...
@@ -33,32 +33,32 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -33,32 +33,32 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<h4>
<?
php
echo
Yii
::
t
(
'backend'
,
'Delete a value with the specified key from cache'
)
?>
</h4>
<h4>
<?
=
Yii
::
t
(
'backend'
,
'Delete a value with the specified key from cache'
)
?>
</h4>
<?php
\yii\bootstrap\ActiveForm
::
begin
([
<?php
\yii\bootstrap\ActiveForm
::
begin
([
'action'
=>
\yii\helpers\Url
::
to
(
'flush-cache-key'
),
'action'
=>
\yii\helpers\Url
::
to
(
'flush-cache-key'
),
'method'
=>
'get'
,
'method'
=>
'get'
,
'layout'
=>
'inline'
,
'layout'
=>
'inline'
,
])
?>
])
?>
<?
php
echo
Html
::
dropDownList
(
<?
=
Html
::
dropDownList
(
'id'
,
null
,
\yii\helpers\ArrayHelper
::
map
(
$dataProvider
->
allModels
,
'name'
,
'name'
),
'id'
,
null
,
\yii\helpers\ArrayHelper
::
map
(
$dataProvider
->
allModels
,
'name'
,
'name'
),
[
'class'
=>
'form-control'
,
'prompt'
=>
Yii
::
t
(
'backend'
,
'Select cache'
)])
[
'class'
=>
'form-control'
,
'prompt'
=>
Yii
::
t
(
'backend'
,
'Select cache'
)])
?>
?>
<?
php
echo
Html
::
input
(
'string'
,
'key'
,
null
,
[
'class'
=>
'form-control'
,
'placeholder'
=>
Yii
::
t
(
'backend'
,
'Key'
)])
?>
<?
=
Html
::
input
(
'string'
,
'key'
,
null
,
[
'class'
=>
'form-control'
,
'placeholder'
=>
Yii
::
t
(
'backend'
,
'Key'
)])
?>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Flush'
),
[
'class'
=>
'btn btn-danger'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Flush'
),
[
'class'
=>
'btn btn-danger'
])
?>
<?php
\yii\bootstrap\ActiveForm
::
end
()
?>
<?php
\yii\bootstrap\ActiveForm
::
end
()
?>
</div>
</div>
<div
class=
"col-xs-6"
>
<div
class=
"col-xs-6"
>
<h4>
<?
php
echo
Yii
::
t
(
'backend'
,
'Invalidate tag'
)
?>
</h4>
<h4>
<?
=
Yii
::
t
(
'backend'
,
'Invalidate tag'
)
?>
</h4>
<?php
\yii\bootstrap\ActiveForm
::
begin
([
<?php
\yii\bootstrap\ActiveForm
::
begin
([
'action'
=>
\yii\helpers\Url
::
to
(
'flush-cache-tag'
),
'action'
=>
\yii\helpers\Url
::
to
(
'flush-cache-tag'
),
'method'
=>
'get'
,
'method'
=>
'get'
,
'layout'
=>
'inline'
'layout'
=>
'inline'
])
?>
])
?>
<?
php
echo
Html
::
dropDownList
(
<?
=
Html
::
dropDownList
(
'id'
,
null
,
\yii\helpers\ArrayHelper
::
map
(
$dataProvider
->
allModels
,
'name'
,
'name'
),
'id'
,
null
,
\yii\helpers\ArrayHelper
::
map
(
$dataProvider
->
allModels
,
'name'
,
'name'
),
[
'class'
=>
'form-control'
,
'prompt'
=>
Yii
::
t
(
'backend'
,
'Select cache'
)])
?>
[
'class'
=>
'form-control'
,
'prompt'
=>
Yii
::
t
(
'backend'
,
'Select cache'
)])
?>
<?
php
echo
Html
::
input
(
'string'
,
'tag'
,
null
,
[
'class'
=>
'form-control'
,
'placeholder'
=>
Yii
::
t
(
'backend'
,
'Tag'
)])
?>
<?
=
Html
::
input
(
'string'
,
'tag'
,
null
,
[
'class'
=>
'form-control'
,
'placeholder'
=>
Yii
::
t
(
'backend'
,
'Tag'
)])
?>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Flush'
),
[
'class'
=>
'btn btn-danger'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Flush'
),
[
'class'
=>
'btn btn-danger'
])
?>
<?php
\yii\bootstrap\ActiveForm
::
end
()
?>
<?php
\yii\bootstrap\ActiveForm
::
end
()
?>
</div>
</div>
</div>
</div>
...
...
backend/views/file-manager/index.php
View file @
470b0c23
...
@@ -5,7 +5,7 @@ $this->title = Yii::t('backend', 'File Manager')
...
@@ -5,7 +5,7 @@ $this->title = Yii::t('backend', 'File Manager')
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"col-xs-12"
>
<?
php
echo
\mihaildev\elfinder\ElFinder
::
widget
([
<?
=
\mihaildev\elfinder\ElFinder
::
widget
([
'controller'
=>
'file-manager-elfinder'
,
'controller'
=>
'file-manager-elfinder'
,
'frameOptions'
=>
[
'style'
=>
'min-height: 500px; width: 100%; border: 0'
],
'frameOptions'
=>
[
'style'
=>
'min-height: 500px; width: 100%; border: 0'
],
]);
]);
...
...
backend/views/file-storage/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'component'
)
?>
<?
=
$form
->
field
(
$model
,
'component'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'base_url'
)
?>
<?
=
$form
->
field
(
$model
,
'base_url'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'path'
)
?>
<?
=
$form
->
field
(
$model
,
'path'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'type'
)
?>
<?
=
$form
->
field
(
$model
,
'type'
)
?>
<?php
// echo $form->field($model, 'size') ?>
<?php
// echo $form->field($model, 'size') ?>
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
...
@@ -34,8 +34,8 @@ use yii\bootstrap\ActiveForm;
<?
php
// echo $form->field($model, 'created_at') ?>
<?
php
// echo $form->field($model, 'created_at') ?>
<
div
class
="
form
-
group
">
<
div
class
="
form
-
group
">
<?
php echo
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
=
Html::submitButton(Yii::t('backend', 'Search'), ['class' => 'btn btn-primary']) ?>
<?
php echo
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
<?
=
Html::resetButton(Yii::t('backend', 'Reset'), ['class' => 'btn btn-default']) ?>
</div>
</div>
<?php ActiveForm::end(); ?>
<?php ActiveForm::end(); ?>
...
...
backend/views/file-storage/index.php
View file @
470b0c23
...
@@ -20,10 +20,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -20,10 +20,10 @@ $this->params['breadcrumbs'][] = $this->title;
<div class="
col
-
xs
-
12
">
<div class="
col
-
xs
-
12
">
<dl>
<dl>
<dt>
<dt>
<?
php echo
Yii::t('backend', 'Used size') ?>:
<?
=
Yii::t('backend', 'Used size') ?>:
</dt>
</dt>
<dd>
<dd>
<?
php echo
Yii::
$app->formatter
->asSize(
$totalSize
); ?>
<?
=
Yii::
$app->formatter
->asSize(
$totalSize
); ?>
</dd>
</dd>
</dl>
</dl>
</div>
</div>
...
@@ -33,10 +33,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -33,10 +33,10 @@ $this->params['breadcrumbs'][] = $this->title;
<div class="
col
-
xs
-
12
">
<div class="
col
-
xs
-
12
">
<dl>
<dl>
<dt>
<dt>
<?
php echo
Yii::t('backend', 'Count') ?>:
<?
=
Yii::t('backend', 'Count') ?>:
</dt>
</dt>
<dd>
<dd>
<?
php echo
$dataProvider->totalCount
?>
<?
=
$dataProvider->totalCount
?>
</dd>
</dd>
</dl>
</dl>
</div>
</div>
...
@@ -44,7 +44,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -44,7 +44,7 @@ $this->params['breadcrumbs'][] = $this->title;
</div>
</div>
</div>
</div>
<?
php echo
GridView::widget([
<?
=
GridView::widget([
'dataProvider' =>
$dataProvider
,
'dataProvider' =>
$dataProvider
,
'filterModel' =>
$searchModel
,
'filterModel' =>
$searchModel
,
'options' => [
'options' => [
...
...
backend/views/file-storage/view.php
View file @
470b0c23
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"file-storage-item-view"
>
<div
class=
"file-storage-item-view"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
])
?>
])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/views/key-storage/_form.php
View file @
470b0c23
...
@@ -12,14 +12,14 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,14 +12,14 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'key'
)
->
textInput
()
?>
<?
=
$form
->
field
(
$model
,
'key'
)
->
textInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'value'
)
->
textInput
()
?>
<?
=
$form
->
field
(
$model
,
'value'
)
->
textInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'comment'
)
->
textarea
()
?>
<?
=
$form
->
field
(
$model
,
'comment'
)
->
textarea
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/key-storage/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"key-storage-item-create"
>
<div
class=
"key-storage-item-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/views/key-storage/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Key Storage Item'
,
'modelClass'
=>
'Key Storage Item'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/key-storage/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"key-storage-item-update"
>
<div
class=
"key-storage-item-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/views/layouts/base.php
View file @
470b0c23
...
@@ -15,17 +15,17 @@ $this->params['body-class'] = array_key_exists('body-class', $this->params) ?
...
@@ -15,17 +15,17 @@ $this->params['body-class'] = array_key_exists('body-class', $this->params) ?
<?php
$this
->
beginPage
()
?>
<?php
$this
->
beginPage
()
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"
<?
php
echo
Yii
::
$app
->
language
?>
"
>
<html
lang=
"
<?
=
Yii
::
$app
->
language
?>
"
>
<head>
<head>
<meta
charset=
"
<?
php
echo
Yii
::
$app
->
charset
?>
"
>
<meta
charset=
"
<?
=
Yii
::
$app
->
charset
?>
"
>
<meta
content=
'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
name=
'viewport'
>
<meta
content=
'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no'
name=
'viewport'
>
<?
php
echo
Html
::
csrfMetaTags
()
?>
<?
=
Html
::
csrfMetaTags
()
?>
<title>
<?
php
echo
Html
::
encode
(
$this
->
title
)
?>
</title>
<title>
<?
=
Html
::
encode
(
$this
->
title
)
?>
</title>
<?php
$this
->
head
()
?>
<?php
$this
->
head
()
?>
</head>
</head>
<?
php
echo
Html
::
beginTag
(
'body'
,
[
<?
=
Html
::
beginTag
(
'body'
,
[
'class'
=>
implode
(
' '
,
[
'class'
=>
implode
(
' '
,
[
ArrayHelper
::
getValue
(
$this
->
params
,
'body-class'
),
ArrayHelper
::
getValue
(
$this
->
params
,
'body-class'
),
Yii
::
$app
->
keyStorage
->
get
(
'backend.theme-skin'
,
'skin-blue'
),
Yii
::
$app
->
keyStorage
->
get
(
'backend.theme-skin'
,
'skin-blue'
),
...
@@ -35,8 +35,8 @@ $this->params['body-class'] = array_key_exists('body-class', $this->params) ?
...
@@ -35,8 +35,8 @@ $this->params['body-class'] = array_key_exists('body-class', $this->params) ?
])
])
])
?>
])
?>
<?php
$this
->
beginBody
()
?>
<?php
$this
->
beginBody
()
?>
<?
php
echo
$content
?>
<?
=
$content
?>
<?php
$this
->
endBody
()
?>
<?php
$this
->
endBody
()
?>
<?
php
echo
Html
::
endTag
(
'body'
)
?>
<?
=
Html
::
endTag
(
'body'
)
?>
</html>
</html>
<?php
$this
->
endPage
()
?>
<?php
$this
->
endPage
()
?>
\ No newline at end of file
backend/views/layouts/common.php
View file @
470b0c23
This diff is collapsed.
Click to expand it.
backend/views/layouts/main.php
View file @
470b0c23
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<?php
$this
->
beginContent
(
'@backend/views/layouts/common.php'
);
?>
<?php
$this
->
beginContent
(
'@backend/views/layouts/common.php'
);
?>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"box-body"
>
<div
class=
"box-body"
>
<?
php
echo
$content
?>
<?
=
$content
?>
</div>
</div>
</div>
</div>
<?php
$this
->
endContent
();
?>
<?php
$this
->
endContent
();
?>
\ No newline at end of file
backend/views/log/_search.php
View file @
470b0c23
...
@@ -15,21 +15,21 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,21 +15,21 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'level'
)
?>
<?
=
$form
->
field
(
$model
,
'level'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'category'
)
?>
<?
=
$form
->
field
(
$model
,
'category'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'log_time'
)
?>
<?
=
$form
->
field
(
$model
,
'log_time'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'prefix'
)
?>
<?
=
$form
->
field
(
$model
,
'prefix'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'message'
)
?>
<?
=
$form
->
field
(
$model
,
'message'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/log/index.php
View file @
470b0c23
...
@@ -13,12 +13,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,12 +13,12 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"system-log-index"
>
<div
class=
"system-log-index"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Clear'
),
false
,
[
'class'
=>
'btn btn-danger'
,
'data-method'
=>
'delete'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Clear'
),
false
,
[
'class'
=>
'btn btn-danger'
,
'data-method'
=>
'delete'
])
?>
</p>
</p>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/log/view.php
View file @
470b0c23
...
@@ -13,10 +13,10 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,10 +13,10 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"system-log-view"
>
<div
class=
"system-log-view"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'method'
=>
'post'
]])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'method'
=>
'post'
]])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/views/page/_form.php
View file @
470b0c23
...
@@ -12,11 +12,11 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,11 +12,11 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'body'
)
->
widget
(
\yii\imperavi\Widget
::
className
(),
\yii\imperavi\Widget
::
className
(),
[
[
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
...
@@ -29,12 +29,12 @@ use yii\bootstrap\ActiveForm;
...
@@ -29,12 +29,12 @@ use yii\bootstrap\ActiveForm;
]
]
)
?>
)
?>
<?
php
echo
$form
->
field
(
$model
,
'view'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
=
$form
->
field
(
$model
,
'view'
)
->
textInput
([
'maxlength'
=>
true
])
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/page/_search.php
View file @
470b0c23
...
@@ -15,19 +15,19 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,19 +15,19 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'slug'
)
?>
<?
=
$form
->
field
(
$model
,
'slug'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
?>
<?
=
$form
->
field
(
$model
,
'title'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
?>
<?
=
$form
->
field
(
$model
,
'body'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
?>
<?
=
$form
->
field
(
$model
,
'status'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/page/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"page-create"
>
<div
class=
"page-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/views/page/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Page'
,
'modelClass'
=>
'Page'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/page/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"page-update"
>
<div
class=
"page-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/views/sign-in/account.php
View file @
470b0c23
...
@@ -13,16 +13,16 @@ $this->title = Yii::t('backend', 'Edit account')
...
@@ -13,16 +13,16 @@ $this->title = Yii::t('backend', 'Edit account')
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'username'
)
?>
<?
=
$form
->
field
(
$model
,
'username'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'email'
)
?>
<?
=
$form
->
field
(
$model
,
'email'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
=
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'password_confirm'
)
->
passwordInput
()
?>
<?
=
$form
->
field
(
$model
,
'password_confirm'
)
->
passwordInput
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/sign-in/login.php
View file @
470b0c23
...
@@ -12,18 +12,18 @@ $this->params['body-class'] = 'login-page';
...
@@ -12,18 +12,18 @@ $this->params['body-class'] = 'login-page';
?>
?>
<div
class=
"login-box"
>
<div
class=
"login-box"
>
<div
class=
"login-logo"
>
<div
class=
"login-logo"
>
<?
php
echo
Html
::
encode
(
$this
->
title
)
?>
<?
=
Html
::
encode
(
$this
->
title
)
?>
</div>
<!-- /.login-logo -->
</div>
<!-- /.login-logo -->
<div
class=
"header"
></div>
<div
class=
"header"
></div>
<div
class=
"login-box-body"
>
<div
class=
"login-box-body"
>
<?php
$form
=
ActiveForm
::
begin
([
'id'
=>
'login-form'
]);
?>
<?php
$form
=
ActiveForm
::
begin
([
'id'
=>
'login-form'
]);
?>
<div
class=
"body"
>
<div
class=
"body"
>
<?
php
echo
$form
->
field
(
$model
,
'username'
)
?>
<?
=
$form
->
field
(
$model
,
'username'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
=
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
([
'class'
=>
'simple'
])
?>
<?
=
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
([
'class'
=>
'simple'
])
?>
</div>
</div>
<div
class=
"footer"
>
<div
class=
"footer"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Sign me in'
),
[
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Sign me in'
),
[
'class'
=>
'btn btn-primary btn-flat btn-block'
,
'class'
=>
'btn btn-primary btn-flat btn-block'
,
'name'
=>
'login-button'
'name'
=>
'login-button'
])
?>
])
?>
...
...
backend/views/sign-in/profile.php
View file @
470b0c23
...
@@ -15,25 +15,25 @@ $this->title = Yii::t('backend', 'Edit profile')
...
@@ -15,25 +15,25 @@ $this->title = Yii::t('backend', 'Edit profile')
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'picture'
)
->
widget
(
\trntv\filekit\widget\Upload
::
classname
(),
[
<?
=
$form
->
field
(
$model
,
'picture'
)
->
widget
(
\trntv\filekit\widget\Upload
::
classname
(),
[
'url'
=>
[
'avatar-upload'
]
'url'
=>
[
'avatar-upload'
]
])
?>
])
?>
<?
php
echo
$form
->
field
(
$model
,
'firstname'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
=
$form
->
field
(
$model
,
'firstname'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
php
echo
$form
->
field
(
$model
,
'middlename'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
=
$form
->
field
(
$model
,
'middlename'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
php
echo
$form
->
field
(
$model
,
'lastname'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
=
$form
->
field
(
$model
,
'lastname'
)
->
textInput
([
'maxlength'
=>
255
])
?>
<?
php
echo
$form
->
field
(
$model
,
'locale'
)
->
dropDownlist
(
Yii
::
$app
->
params
[
'availableLocales'
])
?>
<?
=
$form
->
field
(
$model
,
'locale'
)
->
dropDownlist
(
Yii
::
$app
->
params
[
'availableLocales'
])
?>
<?
php
echo
$form
->
field
(
$model
,
'gender'
)
->
dropDownlist
([
<?
=
$form
->
field
(
$model
,
'gender'
)
->
dropDownlist
([
UserProfile
::
GENDER_FEMALE
=>
Yii
::
t
(
'backend'
,
'Female'
),
UserProfile
::
GENDER_FEMALE
=>
Yii
::
t
(
'backend'
,
'Female'
),
UserProfile
::
GENDER_MALE
=>
Yii
::
t
(
'backend'
,
'Male'
)
UserProfile
::
GENDER_MALE
=>
Yii
::
t
(
'backend'
,
'Male'
)
])
?>
])
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/site/error.php
View file @
470b0c23
...
@@ -15,7 +15,7 @@ $this->title = $name;
...
@@ -15,7 +15,7 @@ $this->title = $name;
<div
class=
"error-content text-center"
>
<div
class=
"error-content text-center"
>
<h3
class=
"headline"
>
<h3
class=
"headline"
>
<i
class=
"fa fa-warning text-yellow"
></i>
<i
class=
"fa fa-warning text-yellow"
></i>
<?
php
echo
Yii
::
t
(
<?
=
Yii
::
t
(
'backend'
,
'backend'
,
'Error {code}'
,
'Error {code}'
,
[
[
...
@@ -24,7 +24,7 @@ $this->title = $name;
...
@@ -24,7 +24,7 @@ $this->title = $name;
?>
?>
</h3>
</h3>
<p>
<p>
<?
php
echo
nl2br
(
Html
::
encode
(
$message
))
?>
<?
=
nl2br
(
Html
::
encode
(
$message
))
?>
</p>
</p>
</div>
</div>
</div>
</div>
...
...
backend/views/site/settings.php
View file @
470b0c23
...
@@ -6,7 +6,7 @@ $this->title = Yii::t('backend', 'Application settings');
...
@@ -6,7 +6,7 @@ $this->title = Yii::t('backend', 'Application settings');
?>
?>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"box-body"
>
<div
class=
"box-body"
>
<?
php
echo
\common\components\keyStorage\FormWidget
::
widget
([
<?
=
\common\components\keyStorage\FormWidget
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'formClass'
=>
'\yii\bootstrap\ActiveForm'
,
'formClass'
=>
'\yii\bootstrap\ActiveForm'
,
'submitText'
=>
Yii
::
t
(
'backend'
,
'Save'
),
'submitText'
=>
Yii
::
t
(
'backend'
,
'Save'
),
...
...
backend/views/system-information/fail.php
View file @
470b0c23
...
@@ -6,7 +6,7 @@ use yii\helpers\Html;
...
@@ -6,7 +6,7 @@ use yii\helpers\Html;
$this
->
title
=
Yii
::
t
(
'backend'
,
'System Information'
);
$this
->
title
=
Yii
::
t
(
'backend'
,
'System Information'
);
?>
?>
<?
php
echo
Yii
::
t
(
<?
=
Yii
::
t
(
'backend'
,
'backend'
,
'Sorry, application failed to collect information about your system. See {link}.'
,
'Sorry, application failed to collect information about your system. See {link}.'
,
[
'link'
=>
Html
::
a
(
'trntv/probe'
,
'https://github.com/trntv/probe#user-content-supported-os'
)]
[
'link'
=>
Html
::
a
(
'trntv/probe'
,
'https://github.com/trntv/probe#user-content-supported-os'
)]
...
...
backend/views/system-information/index.php
View file @
470b0c23
This diff is collapsed.
Click to expand it.
backend/views/timeline-event/_item.php
View file @
470b0c23
...
@@ -7,25 +7,25 @@
...
@@ -7,25 +7,25 @@
<div
class=
"timeline-item"
>
<div
class=
"timeline-item"
>
<span
class=
"time"
>
<span
class=
"time"
>
<i
class=
"fa fa-clock-o"
></i>
<i
class=
"fa fa-clock-o"
></i>
<?
php
echo
Yii
::
$app
->
formatter
->
asRelativeTime
(
$model
->
created_at
)
?>
<?
=
Yii
::
$app
->
formatter
->
asRelativeTime
(
$model
->
created_at
)
?>
</span>
</span>
<h3
class=
"timeline-header"
>
<h3
class=
"timeline-header"
>
<?
php
echo
Yii
::
t
(
'backend'
,
'You have new event'
)
?>
<?
=
Yii
::
t
(
'backend'
,
'You have new event'
)
?>
</h3>
</h3>
<div
class=
"timeline-body"
>
<div
class=
"timeline-body"
>
<dl>
<dl>
<dt>
<?
php
echo
Yii
::
t
(
'backend'
,
'Application'
)
?>
:
</dt>
<dt>
<?
=
Yii
::
t
(
'backend'
,
'Application'
)
?>
:
</dt>
<dd>
<?
php
echo
$model
->
application
?>
</dd>
<dd>
<?
=
$model
->
application
?>
</dd>
<dt>
<?
php
echo
Yii
::
t
(
'backend'
,
'Category'
)
?>
:
</dt>
<dt>
<?
=
Yii
::
t
(
'backend'
,
'Category'
)
?>
:
</dt>
<dd>
<?
php
echo
$model
->
category
?>
</dd>
<dd>
<?
=
$model
->
category
?>
</dd>
<dt>
<?
php
echo
Yii
::
t
(
'backend'
,
'Event'
)
?>
:
</dt>
<dt>
<?
=
Yii
::
t
(
'backend'
,
'Event'
)
?>
:
</dt>
<dd>
<?
php
echo
$model
->
event
?>
</dd>
<dd>
<?
=
$model
->
event
?>
</dd>
<dt>
<?
php
echo
Yii
::
t
(
'backend'
,
'Date'
)
?>
:
</dt>
<dt>
<?
=
Yii
::
t
(
'backend'
,
'Date'
)
?>
:
</dt>
<dd>
<?
php
echo
Yii
::
$app
->
formatter
->
asDatetime
(
$model
->
created_at
)
?>
</dd>
<dd>
<?
=
Yii
::
$app
->
formatter
->
asDatetime
(
$model
->
created_at
)
?>
</dd>
</dl>
</dl>
</div>
</div>
</div>
</div>
\ No newline at end of file
backend/views/timeline-event/_search.php
View file @
470b0c23
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,15 +15,15 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'application'
)
?>
<?
=
$form
->
field
(
$model
,
'application'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'event'
)
?>
<?
=
$form
->
field
(
$model
,
'event'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/timeline-event/index.php
View file @
470b0c23
...
@@ -20,7 +20,7 @@ $icons = [
...
@@ -20,7 +20,7 @@ $icons = [
<!-- timeline time label -->
<!-- timeline time label -->
<li
class=
"time-label"
>
<li
class=
"time-label"
>
<span
class=
"bg-blue"
>
<span
class=
"bg-blue"
>
<?
php
echo
Yii
::
$app
->
formatter
->
asDate
(
$model
->
created_at
)
?>
<?
=
Yii
::
$app
->
formatter
->
asDate
(
$model
->
created_at
)
?>
</span>
</span>
</li>
</li>
<?php
$date
=
Yii
::
$app
->
formatter
->
asDate
(
$model
->
created_at
)
?>
<?php
$date
=
Yii
::
$app
->
formatter
->
asDate
(
$model
->
created_at
)
?>
...
@@ -42,11 +42,11 @@ $icons = [
...
@@ -42,11 +42,11 @@ $icons = [
</li>
</li>
</ul>
</ul>
<?php
else
:
?>
<?php
else
:
?>
<?
php
echo
Yii
::
t
(
'backend'
,
'No events found'
)
?>
<?
=
Yii
::
t
(
'backend'
,
'No events found'
)
?>
<?php
endif
;
?>
<?php
endif
;
?>
</div>
</div>
<div
class=
"col-md-12 text-center"
>
<div
class=
"col-md-12 text-center"
>
<?
php
echo
\yii\widgets\LinkPager
::
widget
([
<?
=
\yii\widgets\LinkPager
::
widget
([
'pagination'
=>
$dataProvider
->
pagination
,
'pagination'
=>
$dataProvider
->
pagination
,
'options'
=>
[
'class'
=>
'pagination'
]
'options'
=>
[
'class'
=>
'pagination'
]
])
?>
])
?>
...
...
backend/views/timeline-event/user/signup.php
View file @
470b0c23
...
@@ -7,22 +7,22 @@
...
@@ -7,22 +7,22 @@
<div
class=
"timeline-item"
>
<div
class=
"timeline-item"
>
<span
class=
"time"
>
<span
class=
"time"
>
<i
class=
"fa fa-clock-o"
></i>
<i
class=
"fa fa-clock-o"
></i>
<?
php
echo
Yii
::
$app
->
formatter
->
asRelativeTime
(
$model
->
created_at
)
?>
<?
=
Yii
::
$app
->
formatter
->
asRelativeTime
(
$model
->
created_at
)
?>
</span>
</span>
<h3
class=
"timeline-header"
>
<h3
class=
"timeline-header"
>
<?
php
echo
Yii
::
t
(
'backend'
,
'You have new user!'
)
?>
<?
=
Yii
::
t
(
'backend'
,
'You have new user!'
)
?>
</h3>
</h3>
<div
class=
"timeline-body"
>
<div
class=
"timeline-body"
>
<?
php
echo
Yii
::
t
(
'backend'
,
'New user ({identity}) was registered at {created_at}'
,
[
<?
=
Yii
::
t
(
'backend'
,
'New user ({identity}) was registered at {created_at}'
,
[
'identity'
=>
$model
->
data
[
'public_identity'
],
'identity'
=>
$model
->
data
[
'public_identity'
],
'created_at'
=>
Yii
::
$app
->
formatter
->
asDatetime
(
$model
->
data
[
'created_at'
])
'created_at'
=>
Yii
::
$app
->
formatter
->
asDatetime
(
$model
->
data
[
'created_at'
])
])
?>
])
?>
</div>
</div>
<div
class=
"timeline-footer"
>
<div
class=
"timeline-footer"
>
<?
php
echo
\yii\helpers\Html
::
a
(
<?
=
\yii\helpers\Html
::
a
(
Yii
::
t
(
'backend'
,
'View user'
),
Yii
::
t
(
'backend'
,
'View user'
),
[
'/user/view'
,
'id'
=>
$model
->
data
[
'user_id'
]],
[
'/user/view'
,
'id'
=>
$model
->
data
[
'user_id'
]],
[
'class'
=>
'btn btn-success btn-sm'
]
[
'class'
=>
'btn btn-success btn-sm'
]
...
...
backend/views/user/_form.php
View file @
470b0c23
...
@@ -14,13 +14,13 @@ use yii\bootstrap\ActiveForm;
...
@@ -14,13 +14,13 @@ use yii\bootstrap\ActiveForm;
<div
class=
"user-form"
>
<div
class=
"user-form"
>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'username'
)
?>
<?
=
$form
->
field
(
$model
,
'username'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'email'
)
?>
<?
=
$form
->
field
(
$model
,
'email'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
=
$form
->
field
(
$model
,
'password'
)
->
passwordInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
dropDownList
(
User
::
statuses
())
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
dropDownList
(
User
::
statuses
())
?>
<?
php
echo
$form
->
field
(
$model
,
'roles'
)
->
checkboxList
(
$roles
)
?>
<?
=
$form
->
field
(
$model
,
'roles'
)
->
checkboxList
(
$roles
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Save'
),
[
'class'
=>
'btn btn-primary'
,
'name'
=>
'signup-button'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Save'
),
[
'class'
=>
'btn btn-primary'
,
'name'
=>
'signup-button'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/user/_search.php
View file @
470b0c23
...
@@ -15,25 +15,25 @@ use yii\bootstrap\ActiveForm;
...
@@ -15,25 +15,25 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'username'
)
?>
<?
=
$form
->
field
(
$model
,
'username'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'auth_key'
)
?>
<?
=
$form
->
field
(
$model
,
'auth_key'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'email'
)
?>
<?
=
$form
->
field
(
$model
,
'email'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'role'
)
?>
<?
=
$form
->
field
(
$model
,
'role'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
?>
<?
=
$form
->
field
(
$model
,
'status'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'created_at'
)
?>
<?
=
$form
->
field
(
$model
,
'created_at'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'updated_at'
)
?>
<?
=
$form
->
field
(
$model
,
'updated_at'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/user/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"user-create"
>
<div
class=
"user-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'roles'
=>
$roles
'roles'
=>
$roles
])
?>
])
?>
...
...
backend/views/user/index.php
View file @
470b0c23
...
@@ -17,12 +17,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -17,12 +17,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'User'
,
'modelClass'
=>
'User'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/user/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = ['label'=>Yii::t('backend', 'Update')];
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = ['label'=>Yii::t('backend', 'Update')];
?>
?>
<div
class=
"user-update"
>
<div
class=
"user-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
'roles'
=>
$roles
'roles'
=>
$roles
])
?>
])
?>
...
...
backend/views/user/view.php
View file @
470b0c23
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,8 +13,8 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"user-view"
>
<div
class=
"user-view"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Update'
),
[
'update'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Delete'
),
[
'delete'
,
'id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-danger'
,
'class'
=>
'btn btn-danger'
,
'data'
=>
[
'data'
=>
[
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
'confirm'
=>
Yii
::
t
(
'backend'
,
'Are you sure you want to delete this item?'
),
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -23,7 +23,7 @@ $this->params['breadcrumbs'][] = $this->title;
])
?>
])
?>
</p>
</p>
<?
php
echo
DetailView
::
widget
([
<?
=
DetailView
::
widget
([
'model'
=>
$model
,
'model'
=>
$model
,
'attributes'
=>
[
'attributes'
=>
[
'id'
,
'id'
,
...
...
backend/views/widget-carousel/_form.php
View file @
470b0c23
...
@@ -12,12 +12,12 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,12 +12,12 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
=
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/widget-carousel/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"widget-carousel-create"
>
<div
class=
"widget-carousel-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/views/widget-carousel/index.php
View file @
470b0c23
...
@@ -13,12 +13,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -13,12 +13,12 @@ $this->params['breadcrumbs'][] = $this->title;
<div
class=
"widget-carousel-index"
>
<div
class=
"widget-carousel-index"
>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Widget Carousel'
,
'modelClass'
=>
'Widget Carousel'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'options'
=>
[
'options'
=>
[
...
...
backend/views/widget-carousel/item/_form.php
View file @
470b0c23
...
@@ -12,20 +12,20 @@ use yii\helpers\Html;
...
@@ -12,20 +12,20 @@ use yii\helpers\Html;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
errorSummary
(
$model
)
?>
<?
=
$form
->
errorSummary
(
$model
)
?>
<?
php
echo
$form
->
field
(
$model
,
'image'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'image'
)
->
widget
(
\trntv\filekit\widget\Upload
::
className
(),
\trntv\filekit\widget\Upload
::
className
(),
[
[
'url'
=>
[
'/file-storage/upload'
],
'url'
=>
[
'/file-storage/upload'
],
]
]
)
?>
)
?>
<?
php
echo
$form
->
field
(
$model
,
'order'
)
->
textInput
()
?>
<?
=
$form
->
field
(
$model
,
'order'
)
->
textInput
()
?>
<?
php
echo
$form
->
field
(
$model
,
'url'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
=
$form
->
field
(
$model
,
'url'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
php
echo
$form
->
field
(
$model
,
'caption'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'caption'
)
->
widget
(
\yii\imperavi\Widget
::
className
(),
\yii\imperavi\Widget
::
className
(),
[
[
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
'plugins'
=>
[
'fullscreen'
,
'fontcolor'
,
'video'
],
...
@@ -38,10 +38,10 @@ use yii\helpers\Html;
...
@@ -38,10 +38,10 @@ use yii\helpers\Html;
]
]
])
?>
])
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/widget-carousel/item/create.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Create');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Create');
?>
?>
<div
class=
"widget-carousel-item-create"
>
<div
class=
"widget-carousel-item-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/views/widget-carousel/item/update.php
View file @
470b0c23
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,7 +14,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"widget-carousel-item-update"
>
<div
class=
"widget-carousel-item-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/views/widget-carousel/update.php
View file @
470b0c23
...
@@ -14,17 +14,17 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -14,17 +14,17 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"widget-carousel-update"
>
<div
class=
"widget-carousel-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
<p>
<p>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Widget Carousel Item'
,
'modelClass'
=>
'Widget Carousel Item'
,
]),
[
'/widget-carousel-item/create'
,
'carousel_id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'/widget-carousel-item/create'
,
'carousel_id'
=>
$model
->
id
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$carouselItemsProvider
,
'dataProvider'
=>
$carouselItemsProvider
,
'options'
=>
[
'options'
=>
[
'class'
=>
'grid-view table-responsive'
'class'
=>
'grid-view table-responsive'
...
...
backend/views/widget-menu/_form.php
View file @
470b0c23
...
@@ -12,23 +12,23 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,23 +12,23 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
errorSummary
(
$model
)
?>
<?
=
$form
->
errorSummary
(
$model
)
?>
<?
php
echo
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
=
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
=
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
php
echo
$form
->
field
(
$model
,
'items'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'items'
)
->
widget
(
trntv\aceeditor\AceEditor
::
className
(),
trntv\aceeditor\AceEditor
::
className
(),
[
[
'mode'
=>
'json'
'mode'
=>
'json'
]
]
)
?>
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/widget-menu/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"widget-menu-create"
>
<div
class=
"widget-menu-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/views/widget-menu/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"widget-menu-update"
>
<div
class=
"widget-menu-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
backend/views/widget-text/_form.php
View file @
470b0c23
...
@@ -12,21 +12,21 @@ use yii\bootstrap\ActiveForm;
...
@@ -12,21 +12,21 @@ use yii\bootstrap\ActiveForm;
<?php
$form
=
ActiveForm
::
begin
();
?>
<?php
$form
=
ActiveForm
::
begin
();
?>
<?
php
echo
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
=
$form
->
field
(
$model
,
'key'
)
->
textInput
([
'maxlength'
=>
1024
])
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
=
$form
->
field
(
$model
,
'title'
)
->
textInput
([
'maxlength'
=>
512
])
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
->
widget
(
<?
=
$form
->
field
(
$model
,
'body'
)
->
widget
(
trntv\aceeditor\AceEditor
::
className
(),
trntv\aceeditor\AceEditor
::
className
(),
[
[
'mode'
=>
'html'
'mode'
=>
'html'
]
]
)
?>
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<?
=
$form
->
field
(
$model
,
'status'
)
->
checkbox
()
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
<?
=
Html
::
submitButton
(
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
$model
->
isNewRecord
?
Yii
::
t
(
'backend'
,
'Create'
)
:
Yii
::
t
(
'backend'
,
'Update'
),
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
]
[
'class'
=>
$model
->
isNewRecord
?
'btn btn-success'
:
'btn btn-primary'
]
)
?>
)
?>
...
...
backend/views/widget-text/_search.php
View file @
470b0c23
...
@@ -14,19 +14,19 @@ use yii\bootstrap\ActiveForm;
...
@@ -14,19 +14,19 @@ use yii\bootstrap\ActiveForm;
'method'
=>
'get'
,
'method'
=>
'get'
,
]);
?>
]);
?>
<?
php
echo
$form
->
field
(
$model
,
'id'
)
?>
<?
=
$form
->
field
(
$model
,
'id'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'key'
)
?>
<?
=
$form
->
field
(
$model
,
'key'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'title'
)
?>
<?
=
$form
->
field
(
$model
,
'title'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'body'
)
?>
<?
=
$form
->
field
(
$model
,
'body'
)
?>
<?
php
echo
$form
->
field
(
$model
,
'status'
)
?>
<?
=
$form
->
field
(
$model
,
'status'
)
?>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<?
php
echo
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
=
Html
::
submitButton
(
Yii
::
t
(
'backend'
,
'Search'
),
[
'class'
=>
'btn btn-primary'
])
?>
<?
php
echo
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
<?
=
Html
::
resetButton
(
Yii
::
t
(
'backend'
,
'Reset'
),
[
'class'
=>
'btn btn-default'
])
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
...
...
backend/views/widget-text/create.php
View file @
470b0c23
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -10,7 +10,7 @@ $this->params['breadcrumbs'][] = $this->title;
?>
?>
<div
class=
"text-block-create"
>
<div
class=
"text-block-create"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
'model'
=>
$model
])
?>
])
?>
...
...
backend/views/widget-text/index.php
View file @
470b0c23
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
...
@@ -15,12 +15,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<?php
// echo $this->render('_search', ['model' => $searchModel]); ?>
<
p
>
<
p
>
<?
php
echo
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
<?
=
Html
::
a
(
Yii
::
t
(
'backend'
,
'Create {modelClass}'
,
[
'modelClass'
=>
'Text Block'
,
'modelClass'
=>
'Text Block'
,
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
]),
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
</p>
<?
php
echo
GridView
::
widget
([
<?
=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'dataProvider'
=>
$dataProvider
,
'filterModel'
=>
$searchModel
,
'filterModel'
=>
$searchModel
,
'columns'
=>
[
'columns'
=>
[
...
...
backend/views/widget-text/update.php
View file @
470b0c23
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
...
@@ -13,7 +13,7 @@ $this->params['breadcrumbs'][] = Yii::t('backend', 'Update');
?>
?>
<div
class=
"text-block-update"
>
<div
class=
"text-block-update"
>
<?
php
echo
$this
->
render
(
'_form'
,
[
<?
=
$this
->
render
(
'_form'
,
[
'model'
=>
$model
,
'model'
=>
$model
,
])
?>
])
?>
...
...
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