Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
3117c2e0
Commit
3117c2e0
authored
Apr 25, 2016
by
Shakarim Sapa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Добавили manage
parent
4e22b63f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
0 deletions
+73
-0
common/modules/blog/controllers/BidAdminController.php
common/modules/blog/controllers/BidAdminController.php
+44
-0
common/modules/blog/views/bid-admin/manage.php
common/modules/blog/views/bid-admin/manage.php
+29
-0
No files found.
common/modules/blog/controllers/BidAdminController.php
0 → 100644
View file @
3117c2e0
<?php
/**
* Created by PhpStorm.
* User: PHOENIX
* Date: 25.04.16
* Time: 21:26
*/
namespace
common\modules\blog\controllers
;
use
common\components\AdminController
;
use
common\modules\blog\models\BlogBids
;
use
yii\data\ActiveDataProvider
;
class
BidAdminController
extends
AdminController
{
public
static
function
actionsTitles
(){
return
[
'Manage'
=>
'Управление подписками'
,
'Create'
=>
'Добавление подписки'
,
'Update'
=>
'Редактирование подписки'
,
'View'
=>
'Просмотр подписки'
,
'Delete'
=>
'Удаление подписки'
,
];
}
/**
* Lists all Bid models.
* @return mixed
*/
public
function
actionManage
()
{
$dataProvider
=
new
ActiveDataProvider
([
'query'
=>
BlogBids
::
find
()
]);
return
$this
->
render
(
'manage'
,
[
'dataProvider'
=>
$dataProvider
]
);
}
}
\ No newline at end of file
common/modules/blog/views/bid-admin/manage.php
0 → 100644
View file @
3117c2e0
<?php
use
yii\helpers\Html
;
use
yii\grid\GridView
;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<div
class=
"blog-bid-index"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<p>
<?=
Html
::
a
(
'Добавить подписку'
,
[
'create'
],
[
'class'
=>
'btn btn-success'
])
?>
</p>
<?=
GridView
::
widget
([
'dataProvider'
=>
$dataProvider
,
'columns'
=>
[
[
'class'
=>
'yii\grid\SerialColumn'
],
'id'
,
'email'
,
'date:datetime'
,
[
'class'
=>
'yii\grid\ActionColumn'
,
'template'
=>
'{view}{update}{delete}'
,
],
],
]);
?>
</div>
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