<!-- Modal -->
<div id="modalBusquedaAvanzadaTimeClock" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel"><i class="fa fa-search-plus" ></i> <?php echo $_translator->_getTranslation('Busqueda')?></h3>
        </div>
            <?php $_formBuscar = new TimeClockBuscarForm();
            echo $_formBuscar->openForm();?>
            <div class="modal-body">
                <div class="col-lg-8 col-lg-offset-2 col-md-8 col-lg-offset-2 col-xs-12">
                    <div class="form-group"><?php $_formBuscar->showElement('user');?></div>
                    <div class="form-group"><?php $_formBuscar->showElement('start_date');?></div>
                    <div class="form-group"><?php $_formBuscar->showElement('end_date');?></div>
                </div>
            </div>
            <div class="clear"></div>
            <div class="modal-footer">
                <div class="col-lg-2 col-md-2 col-xs-6 pull-right  p-l-0 ">
                    <?php $element = $_formBuscar->getElement('cerrar');echo $_formBuscar->createElement($element);?> 
                </div> 
                <div class="col-lg-2 col-md-2 col-xs-6 pull-right p-r-0">                
                    <?php $element = $_formBuscar->getElement('search');echo $_formBuscar->createElement($element); ?>
                </div>
            </div>
        </div>
        <?php echo $_formBuscar->closeForm();?>
    </div>
</div>
<script>
    $("#start_date,#end_date").datetimepicker({format: 'MM/DD/YYYY'});
    $('#user').select2();
</script>