Faced with such
a problem:
Table is formed by the widget
TbGridView from bootstrap (from yii-booster). In the column TbButtonColumn I form the
"edit / delete, etc."
But one button
I want to do with the effect of Split dropdowns
href="http://yii-booster.clevertech.biz/components.html#buttonDropdowns">http://yii-booster.clevertech.biz/components.html#buttonDropdowns
$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}',
'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',
),
)
),
));
No comments:
Post a Comment