bootstrap.widgets.TbGridView一些元素

$this->widget('bootstrap.widgets.TbGridView', array(
   
'id'=>'customer-grid',
   
'type'=>'striped bordered condensed',
   
'dataProvider'=>$model->search(),
   
'filter'=>$model,
   
'columns'=>array(
       
'surname',
       
'name',
       
'middlename',
       
'dateOfBirth',
        array
(
           
'class'=>'bootstrap.widgets.TbButtonColumn',
           
'template'=>'{add} {list} {update} {print_act}',

'id'=>'$date->["id"]',       

           'updateButtonUrl'=>'Yii::app()->controller->createUrl("update",array("id"=>$data["id"]))',
           
'buttons'=>array
           
(
               
'add' => array
               
(
                   
'label'=>'Назначить прием',
                   
'icon'=>'plus',
                   
'url'=>'Yii::app()->createUrl("reception/create", array("id"=>$data->id))',
                   
'options'=>array(
                       
'class'=>'btn btn-small',
                   
),
               
),
               
'list' => array
               
(
                   
'label'=>'Список предоставленных услуг',
                   
'icon'=>'list white',
                   
'url'=>'Yii::app()->createUrl("patient/update", array("id"=>$data->id))',
                   
'options'=>array(
                       
'class'=>'btn btn-small btn-info',
                   
),
               
),
               
'update' => array
               
(
                   
'label'=>'Изменить данные Пациента',
                   
'icon'=>'pencil white',
                   
'url'=>'Yii::app()->createUrl("customer/update", array("id"=>$data->id))',
                   
'options'=>array(
                       
'class'=>'btn btn-small btn-success',
                   
),
               
),
               
'print_act' => array
               
(
                   
'label'=>'Печать акта выполненных работ',
                   
'icon'=>'print',
                   
'url'=>'Yii::app()->createUrl("customer/printAct", array("id"=>$data->id))',
                   
'options'=>array(
                       
'class'=>'btn btn-small',
                   
),
               
),
           
),
           
'htmlOptions'=>array(
               
'style'=>'width: 220px',
           
),
       
)
   
),
));

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/11190.html