<div class="clear">&nbsp;</div>

<?php
$this->widget('CustomGridView', array(
    'allowNoMoreTables' => true,
    'dataProvider' => $model->search(),
    'filter' => $model,
    'afterAjaxUpdate' => 'function(){$("a[rel=\'tooltip\']").tooltip(); $("div.tooltip-arrow").remove(); $("div.tooltip-inner").remove(); attachStickyTableHeader();}',
    'columns' => array(
        array(
            'name' => 'model_name',
            'type' => 'raw',
            'filter' => SeoFriendlyUrl::getModelNameList(),
            'value' => '$data->getModelName()',
            'htmlOptions' => array(
                'data-title' => tt('Model Name', 'seo'),
            ),
        ),
        array(
            'header' => tt('URL'),
            'name' => 'url_' . Yii::app()->language,
            'type' => 'raw',
            'value' => '$data->getUrlForTable()',
            'htmlOptions' => array(
                'data-title' => tt('URL'),
            ),
        ),
        array(
            'header' => $model->getAttributeLabel('title'),
            'name' => 'title_' . Yii::app()->language,
            'type' => 'raw',
            'htmlOptions' => array(
                'data-title' => tt('Title', 'seo'),
            ),
        ),
        array(
            'class' => 'bootstrap.widgets.BsButtonColumn',
            'template' => '{update}',
            'htmlOptions' => array('class' => 'width50 button_column_actions'),
        ),
    ),
));

?>

<div class="clear">&nbsp;</div>
