<div class="row">
    <div class="span12">
        <h3 class="text-center" style="color: #0A2A0A;">Asociados sin cuenta destino</h3>
    </div>
    <div class="span12">
        <?php $this->widget('bootstrap.widgets.TbGridView', array(
            'id' => 'aporte-voluntario-grid',
            'dataProvider' => $modelAportes->searchAsociadosSinCuenta($model->id),
            'filter' => $modelAportes,
            'columns' => array(
                array(
                    'name' => 'acedula',
                    'value' => '$data->idAsociado->cedula',
                ),
                array(
                    'name' => 'anombre',
                    'value' => '$data->idAsociado->nombre',
                ),
                array(
                    'name' => 'aapellido',
                    'value' => '$data->idAsociado->apellidos',
                ),
                array(
                    'name' => 'id_aportante',
                    'value' => '$data->idAportante->nombre',
                    'filter' => CHtml::activeDropDownList($modelAportes, 'id_aportante',
                    CHtml::listData(Aportante::model()->findAll('blnborrado=FALSE'), 'id', 'nombre'), array('prompt' => 'SELECCIONE')),
                ),
                array(
                    'name' => 'opcion_retiro',
                    'value' => '$data->opcionRetiro->nombre',
                    'filter' => CHtml::activeDropDownList(
                        $modelAportes,
                        'opcion_retiro',
                        CHtml::listData(TipoOperacion::model()->findAll(), 'id', 'nombre'),
                        array('prompt' => '--Seleccione--')
                    ),
                ),
               array(
                    'name' => 'monto_cargado',
                    'value' => '$data->monto_cargado',
                    'htmlOptions' => array('style' => 'text-align: right;'),
                    'type' => 'number',
                ),
                array(
                    'name' => 'monto_retirado',
                    'value' => '$data->monto_retirado',
                    'htmlOptions' => array('style' => 'text-align: right;'),
                    'type' => 'number',
                ),
                array(
                    'name' => 'monto_comision_retira',
                    'value' => '$data->monto_comision_retira',
                    'htmlOptions' => array('style' => 'text-align: right;'),
                    'type' => 'number',
                ),
                array(
                    'name' => 'monto_capitalizado',
                    'value' => '$data->monto_capitalizado',
                    'htmlOptions' => array('style' => 'text-align: right;'),
                    'type' => 'number',
                ),
                array(
                    'name' => 'monto_comision_capitaliza',
                    'value' => '$data->monto_comision_capitaliza',
                    'htmlOptions' => array('style' => 'text-align: right;'),
                    'type' => 'number',
                ),
                array(
                    'name' => 'fecha_pagos',
                    'value' => 'implode("-",array_reverse(explode("-",$data->fecha_pago)))',
                    'class' => 'SYDateColumn',
                ),
                array(
                    'name' => 'nombre_estatus',
                    'value' => '$data->idTxtIntegrado->getEstatus()',
                    'type' => 'raw',
                    'filter' => CHtml::activeDropDownList(new AporteVoluntario(), 'estatus',
                        CHtml::listData(EstatusTxt::model()->findAll('blnborrado=FALSE'), 'id', 'nombre_estatus'),
                        array('prompt' => 'SELECCIONE')
                    ),
                ),
                array(
                    'header' => 'Acciones',
                    'class' => 'bootstrap.widgets.TbButtonColumn',
                    'htmlOptions' => array('width' => '1%'),
                    'template' => '{update} {historial_modificaciones} {cuenta_bancaria}',
                    'buttons' => array(
                        'update' => array(
                            'label' => 'Actualizar',
                            'url' => 'CHtml::normalizeUrl(array("AporteVoluntario/OpcionRetiro", "id" => $data->id))',
                        ),
                        'historial_modificaciones' => array(
                            'icon' => 'icon-list-alt',
                            'label' => 'Historial de modificaciones',
                            'url' => 'CHtml::normalizeUrl(array("AporteVoluntario/historialAporteEspecial", "id" => $data->id))',
                        ),
                        'cuenta_bancaria' => array(
                            'imageUrl' => Yii::app()->request->baseUrl . '/images/icon-bank.png',
                            'label' => 'Historial de modificaciones',
                            'url' => 'CHtml::normalizeUrl(array("/asociado/asociadoCuentaBanco/create", "id" => $data->id_asociado))',
                        ),
                    ),
                ),
            ),
        )); ?>
    </div>
</div>
