<!-- Modal -->
<div id="modalRetiro" class='modal fade' data-backdrop="static"  data-keyboard="false" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
        <?php
            $form = new RetiroForm();
            echo $form->openForm();
            echo $form->showId();?>
        <div class="modal-header">
            <h3 id="myModalLabel"><?php echo $_translator->_getTranslation('Registrar retiro');?></h3>
            <div id="infoProducto"></div>
        </div> 
        <div id="flashmessenger-retiro"></div>
        <div class="modal-body">   
            <div class='col-md-9 col-sx-9'>
                <?php echo $form->showElement('monto');?>
            </div>
            <div class='col-md-3 col-sx-3'>                
                <?php $element = $form->getElement('send');echo $form->createOnlyElement($element);?>
            </div>
            <div class="clear"></div>    
            <div class='col-lg-12 col-md-12 col-sm-12 m-t-3'>
                <table id="tblRetiros" class="table table-condensed table-striped table-hover">
                    <thead>
                        <th class='text-center' style='width:15%'><?php echo $_translator->_getTranslation('Retiro')?></th>
                        <th class='text-center' style='width:30%'><?php echo $_translator->_getTranslation('Monto')?></th>
                        <th class='text-center' style='width:30%'><?php echo $_translator->_getTranslation('Status')?></th>
                        <th class='text-right'><?php echo $_translator->_getTranslation('Accion')?></th>
                    </thead>
                    <tbody>
                        <?php
                            $ajax = new Ajax();
                            $login = new Login();
                            $repo = new AperturaCierreCajaRepository();
                            $idApertura = $repo->getAperturaActualByIdCaja($login->getId());
                            
                            echo $ajax->listRetiros($idApertura);                            
                        ?>
                    </tbody>
                </table>
            </div> 
        </div>
         <div class="modal-footer">    
            <div class='col-lg-3 col-md-3 col-sm-12 pull-right'>
                <input type="button" class='btn btn-default pull-right setCursor' data-dismiss='modal' aria-hidden='true' value="<?php echo $_translator->_getTranslation('Cerrar');?>" />
            </div>            
        </div>
        <?php echo $form->closeForm();?>
    </div>           
    </div>
</div>