<?php
/* @var $this PlanillaController */
/* @var $model Planilla */
/* @var $form CActiveForm */
?>

 <div class="row justify-content-center  mb-3">
  <fieldset class="col-12 col-sm-12 col-md-12 px-3">
    <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"),
                        ));
                        
                        ?>
                  
                     </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"),
                        ));
                        
                        ?>
                
                     </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_empleado', array('class' => 'col-12 text-uppercase mdi mdi-face-outline mdi-18px')); ?>
                           <div class="col-12">
                                <?php 
                                    $this->widget('ext.select2.ESelect2',array(
                                      'model' => $model,
                                      'attribute' => 'id_empleado',  
                                      'data'=> Empleado::lista(),
                                      'options'=>array(
                                        'allowClear'=>true,
                                        'placeholder'=>'SELECCIONE EL EMPLEADO',
                                      ),
                                    ));
                                    ?>  
                           </div>
                        </div>
                    </div>
       
     
       
       
       
       
           <div class="col-12 col-sm-12 col-md-3 col-lg-3 col-xl-3 mt-2  ">
            
                  <?php echo CHtml::submitButton('BUSCAR ',array('class'=>'btn btn-block btn-primary fa fa-search  font-weight-medium mt-3')); ?>
              
        </div> 
       
        </div>
    


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


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