<!-- Modal -->
<div id="modalCardOperations" class='modal fade' data-backdrop="static"  data-keyboard="false" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <h3 id="myModalLabel"><?php echo $_translator->_getTranslation('Pagos con tarjeta');?></h3>
        </div> 
        <div id="flashmessenger-lastCardOperations" style="height: 40px"></div>
        <div class="modal-body">  
            <div style="max-height: 50vh; overflow-y: scroll;">
                <table id="tblCardOperations" class="table table-condensed table-striped table-hover table-scroll" style="font-size: 12px" >
                    <thead>
                        <th class='text-center' style='width:19%'><?php echo $_translator->_getTranslation('Venta')?></th>
                        <th class='text-center' style='width:23%'><?php echo $_translator->_getTranslation('Tarjeta')?></th>                        
                        <th class='text-right' style='width:15%'><?php echo $_translator->_getTranslation('Monto')?></th>
                        <th class='text-center' style='width:20%'><?php echo $_translator->_getTranslation('Status')?></th>
                        <th class='text-center' style='width:22%'><?php echo $_translator->_getTranslation('Accion')?></th>
                    </thead>
                    <tbody></tbody>
                </table>
            </div>
            <div class='clear'></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>
    </div>
    </div>
    <script>       
        $('#tblCardOperations').on('click',"tbody tr td a.refund",function(){ prepareRefund(this);});
        $('#tblCardOperations').on('click',"tbody tr td a.void",function(){ voidTransaction(this);});
        
        $('#tblCardOperations').on('click',"tbody tr td a.cardPaymentDetails",function(){  
            showCardPaymentDetails(this);
        });        
    </script>
</div>