<i>Nota: Solo se contabilizan para los montos totales de las solicitudes, aquellas que esten en estatus de "Aprobado". Igualmente el sistema muestra las solicitude(s) en estatus de "Solicitado" solo para informaci&oacute;n del analistas.</i><br /><br />

<?php $this->widget('bootstrap.widgets.TbAlert', [
    'block' => true,
    'fade' => true,
    'closeText' => '×',
    'alerts' => [
        'error' => ['block' => true, 'fade' => true, 'closeText' => '×'],
    ],
]); ?>

<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', [
    'id' => 'liquidacion-form',
    'type' => 'horizontal',
    'enableAjaxValidation' => false,
    'enableClientValidation' => true,
    'clientOptions' => [
        'validateOnSubmit' => true,
        'validateOnChange' => true,
        'validateOnType' => true,
    ],
]); ?>
    <?= $this->renderPartial('_fichaLiquidacion', [
        'fichaLiquidacion' => $fichaLiquidacion,
        'cedula' => $modelAsociado->cedula,
        'buttons' => true
    ]) ?>
    <div class="well">
        <?= CHtml::label('Seleccione un número de cuenta donde desea sea abonado sus haberes', ''); ?>
        <?= $form->dropDownList($model, 'cuenta', CHtml::listData(AsociadoCuentaBanco::model()->with('idBanco')->together(true)->findAll([
            'select' => "cuenta_bancaria AS id, \"idBanco\".descripcion ||''|| (CASE WHEN cuenta_corriente = true THEN 'Cuenta Corriente' ELSE 'Cuenta de Ahorro' END)||' '|| cuenta_bancaria as cuenta_bancaria",
            'condition' => 'idasociado=:idasociado AND t.blnborrado = false',
            'params' => [':idasociado' => $model->idasociado], ]), 'id', 'cuenta_bancaria'), ['class' => 'input-xxlarge', 'prompt' => '-- SELECCIONE EL BANCO --']);
        ?>
        <?= $form->error($model, 'cuenta'); ?>
        <hr class="soften">
        <p class="text-center">¿Desea solicitar la liquidación total de sus haberes en la caja de ahorro?</p>
        <br>
        <div class="text-center">
            <?php $this->widget('bootstrap.widgets.TbButton', [
                'buttonType' => 'submit',
                'type' => 'success',
                'id' => 'btn_registrar',
                'icon' => 'icon-ok',
                'label' => 'Sí',
                'htmlOptions' => [
                    'id' => 'btn_si',
                ],
            ]); ?>
            <?php $this->widget('bootstrap.widgets.TbButton', [
                'type' => 'danger',
                'id' => 'btn_registrar2',
                'label' => 'No',
                'icon' => 'icon-remove',
                'url' => Yii::app()->createUrl('/asociado/asociado/admin'),
                'htmlOptions' => [
                    'id' => 'btn_no', ],
            ]); ?>
        </div>
    </div>
<?php $this->endWidget(); ?>
