mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-04 00:54:03 +01:00
38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $searchModel app\modules\admin\models\TaskActionSearch */
|
|
/* @var $dataProvider yii\data\ActiveDataProvider */
|
|
|
|
use yii\helpers\Html;
|
|
use yii\grid\GridView;
|
|
use yii\widgets\Pjax;
|
|
$this->title = 'Task Actions';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="task-action-index">
|
|
|
|
<p>
|
|
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
|
|
</p>
|
|
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
|
|
|
<?php Pjax::begin(); ?>
|
|
<?= GridView::widget([
|
|
'dataProvider' => $dataProvider,
|
|
'summaryOptions' => ['class' => 'alert alert-info'],
|
|
'layout' => '{summary}<div class="table-responsive">{items}</div>{pager}',
|
|
'filterModel' => $searchModel,
|
|
'columns' => [
|
|
'id',
|
|
'type',
|
|
'item_id',
|
|
'item_value',
|
|
'name',
|
|
|
|
['class' => 'yii\grid\ActionColumn'],
|
|
],
|
|
]); ?>
|
|
<?php Pjax::end(); ?>
|
|
</div>
|