<?php
$this->widget('bootstrap.widgets.TbGridView', array(
'type'=>'striped bordered condensed',
'dataProvider'=>$model->search(),
'template'=>"{items}",
'filter'=>$model,
'columns'=>array(
array('name'=>'id', 'header'=>'#', 'htmlOptions'=>array('style'=>'width: 40px')),
array('name'=>'name', 'header'=>'Location'),
array(
'class'=>'CButtonColumn',
'header'=>'Select',
'template'=>'{select}',
'buttons'=>array(
'select' => array(
'label'=>'Select',
'url'=>'CJSON::encode($data)'
'click'=>'function(){
$("#location_id_dlg").dialog("close");
return $(this).attr("href");
}',
),
),
)
)
));
?>