<?php
/* @var $this RendicionController */
/* @var $model Rendicion */
/* @var $form CActiveForm */
?>

    <div class="row justify-content-center mt-3 p-3">
  <fieldset class="col-12 col-sm-12 col-md-12 ">
    <legend><i class="fa fa-search  lg"></i>  Buscar:</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 ">
                 <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'=>'Y-m-d'),
                            'htmlOptions' => array(
                                'class' => 'form-control form-control-line',
                                'placeholder'=>"aaaa-mm-dd",
                                'autocomplete'=>"off"),
                        ));
                        
                        ?>
                  
                     </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'=>'Y-m-d'),
                            'htmlOptions' => array(
                                'class' => 'form-control form-control-line',
                                'placeholder'=>"aaaa-mm-dd",
                                'autocomplete'=>"off"),
                        ));
                        
                        ?>
                
                     </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,'id_gestor', array('class' => 'col-12 text-uppercase mdi mdi-face-outline mdi-18px')); ?>
                           <div class="col-12">
                           <?php echo $form->dropdownList($model,'id_gestor', Gestor::lista(),  array('class'=>'form-control form-control-line text-uppercase',
                               'prompt' => 'SELECCIONE')); ?> 
                   
                          </div>
                        </div>
                  </div>
               
        </div>
    
      
 
    <div class="row justify-content-end">
        <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>

