
<?php
/* @var $this UtilidadController */
/* @var $model Utilidad */
?>


<div class='row m-b-3 justify-content-end' >
    <div class='col-12'>        

$box = $this->beginWidget(
    'booster.widgets.TbPanel', array(
    'title' => ' ',
    'context' => '',
    'headerIcon' => ' ',
    'padContent' => false,
    'htmlOptions' => array('class' => 'bootstrap-widget-table'),
    'headerButtons' => array(
        array(
            'class' => 'booster.widgets.TbButtonGroup',
            'context' => 'primary',
            'buttonType' => 'link',
            'buttons' => array(
                array(
                    'label' => ' AGREGAR',
                    'icon' => 'fa fa-plus',
                    'htmlOptions' => array(
                        'data-toggle' => "tooltip",
                        'data-original-title' => 'AGREGAR',
                    ),
                        'url' => Yii::app()->createUrl('utilidad/create'),
                ),
         
                  array(
                    'label' => ' REFRESCAR LISTA',
                    'icon' => 'fa fa-refresh ',
                    'htmlOptions' => array(
                        'data-toggle' => "tooltip",
                        'data-original-title' => 'REFRESCAR LISTA',
                        'onClick' => 'window.location="' . Yii::app()->createUrl('utilidad') . '"; '
                    ),
                      'url' => '#',
                ),
                
            ),
        ),
    )
  )
);
 
$this->endWidget();

</div> 
 </div>          
    

<div class='table-responsive'>   
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'utilidad-grid',
	'dataProvider'=>$model->search(),
        'pager' => array('cssFile' => Yii::app()->baseUrl.'/public/css/tablas.css'),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'tipo_ingreso',
		'monto',
		'descripcion',
		'borrado',
		'estatus',
		/*
		'id_usuario_creador',
		'id_usuario_modificador',
		'id_usuario_eliminador',
		'dtmfecha_creacion',
		'dtmfecha_modificacion',
		'dtmfecha_eliminaacion',
		*/

        
		array(
                  'header' => 'ACCION',
                  'class' => 'CButtonColumn',
                  'deleteButtonImageUrl' => false,
                  'updateButtonImageUrl' => false,
                  'viewButtonImageUrl' => false,
                  'htmlOptions' => array('width' => '100', 'class' => 'text-center'),
                  'template' => '{view}{update}{delete}',
                  'buttons' => array(
                      'view' => array(
                          'label' => ' ',
                          'options' => array(
                              'class' => 'mdi mdi-18px mdi-eye m-r-10',
                              'title' => 'VER',
                          ),
                          'visible' => 'true',
                      ),
                        'update' => array(
                          'label' => ' ',
                          'options' => array(
                              'class' => 'mdi mdi-18px mdi-pencil m-r-10',
                              'title' => 'ACTUALIZAR',
                          ),
                          'visible' => 'true',
                      ),
                        'delete' => array(
                            'label' => ' ',
                            'options' => array(
                                'class' => 'mdi mdi-18px mdi-trash-can-outline m-r-10',
                                'title' => 'ELIMINAR',
                          ),
                            'visible' => 'true',
                      ),
                  )
              ),
	),
)); ?>
</div> 