<?php
    $this->pageTitle = 'Акции';
    $this->pageInfo = 'Список акций';
?>
<?php echo CHtml::link('<i class="fa fa-gift"></i> Создать акцию', '/panel/actions/create'); ?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'actions-grid',
    'template'=>'{items}{pager}',
    'htmlOptions'=>array('class' => 'table-responsive'),
    'itemsCssClass'=>'table table-striped',
    'summaryText'=>false,
    'dataProvider'=>$model->search(),
    'pager'=>array(
        'class'=>'CLinkPager',
        'actionPrefix'=>'page',
        'firstPageCssClass' => 'hidden',
        'prevPageLabel' => '«',
        'nextPageLabel' => '»',
        'lastPageCssClass' => 'hidden',
        'maxButtonCount'=>'5',
        'htmlOptions' => array("class" => 'pagination'),
    ),
    'enableSorting'=>false,
    'columns'=>$model->getColumns(),
)); ?>
