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

    <div class="row justify-content-center ">
  <fieldset class="col-12 col-sm-12 col-md-12 ">
    <legend><i class="fa fa-search  lg"></i>  Buscar Prestamo:</legend>


<div class=" form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
      'htmlOptions' => array(
                'class' => 'form-horizontal mt-3'
         )
)); ?>
   <div class="row justify-content-center">
                 <div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4  ">
                   <div class="form-group ">
                     <?php echo $form->labelEx($model, 'fecha_desde', array('class' => 'col-12 mdi mdi-calendar-blank mdi-18px')); ?>
                     <div class="col-12">

                        <?php
                        $this->widget('ext.YiiDateTimePicker.jqueryDateTime', array(
                            'model' => $model,
                            'attribute' => 'fecha_desde',
                            'options' => array(
                                'lang'=>'es',
                                'timepicker'=>false,
                                'format'=>'d-m-Y'),
                            'htmlOptions' => array('class' => 'form-control form-control-line','placeholder'=>"dd-mm-aaaa"),
                        ));
                        
                        ?>
                  
                     </div>
                 </div>
                    </div>
            
                 <div class="col-12 col-sm-12 col-md-4 col-lg-4 col-xl-4  ">
                             <div class="form-group ">
                     <?php echo $form->labelEx($model, 'fecha_hasta', array('class' => 'col-md-12 mdi mdi-calendar-blank mdi-18px')); ?>
                     <div class="col-12">

                        <?php
                        $this->widget('ext.YiiDateTimePicker.jqueryDateTime', array(
                            'model' => $model,
                            'attribute' => 'fecha_hasta',
                            'options' => array(
                                'lang'=>'es',
                                'timepicker'=>false,
                                'format'=>'d-m-Y'),
                            'htmlOptions' => array('class' => 'form-control form-control-line',
                                'placeholder'=>"dd-mm-aaaa"),
                        ));
                        
                        ?>
                
                     </div>
                 </div>
                    </div>
        
        </div>

    

    <div class="row justify-content-center">
        <div class="col-12 col-sm-12 col-md-3 col-lg-3 col-xl-3">
            <div class="form-group">  
        <button class="search-button btn btn-block btn-default  font-weight-medium mt-3">CANCELAR</button>
                 </div>
        </div> 
        
        <div class="col-12 col-sm-12 col-md-3 col-lg-3 col-xl-3 ">
            <div class="form-group">
                  <?php echo CHtml::submitButton('BUSCAR ',array('class'=>'btn btn-block btn-success fa fa-search  font-weight-medium mt-3')); ?>
           </div>
        </div> 
    </div>

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


</div>    
  </fieldset>
     </div>
