<?php
/* @var $this PrestamoController */
/* @var $model Prestamo */
/* @var $form CActiveForm */

Yii::app()->clientScript->registerScript('search', "
$('.actualizar').click(function(){
	$('.information').show();
});
");
?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'prestamo-form',
	'enableAjaxValidation'=>true,
        'htmlOptions' => array(
                'class' => 'form-horizontal'
            )
));
?>
	
         <?php echo $form->hiddenField($model,'id_prestamo',array('size'=>60,'maxlength'=>100,
                               'class' => 'form-control form-control-line text-uppercase', 'readonly'=>'true',
                               'placeholder'=>"")); ?>
    


<div class="information" style="display:none;">              
    <div class="alert alert-info">EL PROCESO TARDARA UNOS MINUTOS...</div>
</div>


    <div class="row">
    <div class="col-md-6">
        <b>Desde:</b>
        <input type="date" name='date_desde' class='form-control' value='<?php echo date('Y-m-d'); ?>'/>
    </div>

    <div class="col-md-6">
    <b>Hasta:</b>
        <input type="date" name='date_hasta' class='form-control' value='<?php echo date('Y-m-d'); ?>'/>
    </div>
    </div>
        
    <div class="row justify-content-center">
               
        <div class="col-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 m-b-lg">
            <button type="submit" class="btn btn-large btn-block btn-success  actualizar">
                            <i class="fa fa-floppy-o fa-lg   "></i>    ACTUALIZAR ESTATUS PRESTAMOS</button>
                   </div> 
         
        </div>

<?php $this->endWidget(); ?>

</div>



