<?php
    $this->pageTitle = 'Магазины';
    $this->pageInfo = 'Магазин аватаров';
?>
<?php echo CHtml::link('<i class="fa fa-upload"></i> Загрузить аватар', '/panel/shop/createAvatar', array('class'=>'getForm')); ?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
    'id'=>'avatars-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(),
)); ?>
