You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

58 lines
1.5 KiB

<?php
use yii\helpers\Html;
use blobt\grid\GridView;
//use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\CategorySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Categories';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
<div class="col-xs-12">
<?php
echo GridView::widget([
'filter' => $this->render("_search", ['model' => $searchModel]),
'dataProvider' => $dataProvider,
'columns' => [
[
'attribute' => 'id',
'width' => '5%',
'align' => 'center'
],
[
'attribute' => 'created_at',
'width' => '7%',
'format' => 'date'
],
[
'attribute' => 'cat_name',
'width' => '13%',
],
[
'attribute' => 'icon',
'width' => '5%',
],
[
'attribute' => 'icon_type',
'width' => '7%',
'showConstText' => true
],
[
'attribute' => 'description',
'format' => 'ntext',
'width' => '50%',
],
[
'class' => 'yii\grid\ActionColumn',
],
],
]);
?>
</div>
</div>