<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::getModelImagesNameList(),
            'value' => '$data->getModelImageName()',
            'htmlOptions' => array(
                'data-title' => tt('Model Name', 'seo'),
            ),
        ),
        array(
            'header' => tt('ALT'),
            'name' => 'alt_' . Yii::app()->language,
            'type' => 'raw',
            'value' => 'CHtml::encode($data->getStrByLang("alt"))',
            'htmlOptions' => array(
                'data-title' => tt('ALT'),
            ),
        ),
        array(
            'header' => tc('ID'),
            'type' => 'raw',
            'value' => '$data->getImageUrlForParent()',
            'sortable' => false,
            'filter' => false,
            'htmlOptions' => array(
                'data-title' => tc('ID'),
            ),
        ),
        array(
            'class' => 'bootstrap.widgets.BsButtonColumn',
            'template' => '{update}',
            'htmlOptions' => array('class' => 'width50 button_column_actions'),
            'buttons' => array(
                'update' => array(
                    'url' => "Yii::app()->createUrl('/seo/backend/main/updateseoimage', array('id' => \$data->id))",
                ),
            ),
        ),
    ),
));

?>

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