mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-20 03:11:26 +01:00
36 lines
885 B
PHP
36 lines
885 B
PHP
<?php
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $searchModel \app\models\HistorySearch */
|
|
/* @var $dataProvider yii\data\ActiveDataProvider */
|
|
|
|
use yii\helpers\Html;
|
|
use yii\grid\GridView;
|
|
use yii\widgets\Pjax;
|
|
|
|
$this->title = 'Histories';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
$this->params['in-card'] = false;
|
|
?>
|
|
|
|
<div class="card table-card">
|
|
<div class="table-card-actions">
|
|
<?= Html::a('Добавить', ['create'], ['class' => 'btn btn-default btn-flat']) ?>
|
|
</div>
|
|
|
|
<?php Pjax::begin(); ?>
|
|
<?= \app\widgets\DataTable::widget([
|
|
'dataProvider' => $dataProvider,
|
|
'filterModel' => $searchModel,
|
|
'columns' => [
|
|
'id',
|
|
'item_id',
|
|
'commited_at:datetime',
|
|
'value',
|
|
|
|
['class' => 'app\components\ActionButtonColumn'],
|
|
],
|
|
]); ?>
|
|
<?php Pjax::end(); ?>
|
|
</div>
|