<!-- Modal -->
<div id="modalPagoDevolucion" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" 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"><?php echo $_translator->_getTranslation('Pago de devolucion');?></h3>
        </div> 
        <div id="flashmessenger-devolucionPagoDetalles"></div>
        <div class="modal-body">              
            <div class="col-lg-6 col-md-6 col-sm-6">
                <div class='col-lg-12 col-md-12 col-sm-12'>
                    <div class='col-lg-8 col-md-8 col-sm-8 text-left'><h3 class='m-a-0 m-t-1'><?php echo $_translator->_getTranslation('Devolucion')?></h3></div>
                    <div class='col-lg-4 col-md-4 col-sm-4 text-right'><h3 class='montoTotalDevolucion m-a-0 m-t-1'>0.00</h3></div>
                </div>
                <div class='col-lg-12 col-md-12 col-sm-12'>
                    <div class='col-lg-8 col-md-8 col-sm-8 text-left'><h3 class='m-a-0 m-t-1'><?php echo $_translator->_getTranslation('Total Pagado')?></h3></div>
                    <div class='col-lg-4 col-md-4 col-sm-4 text-right'><h3 class='totalPagadoDevolucion m-a-0 m-t-1'>0.00</h3></div>
                </div>
                <div class='col-lg-12 col-md-12 col-sm-12'>
                    <div class='col-lg-8 col-md-8 col-sm-8 text-left'><h3 class='m-a-0 m-t-1'><?php echo $_translator->_getTranslation('Balance')?></h3></div>
                    <div class='col-lg-4 col-md-4 col-sm-4 text-right'><h3 class='balanceDevolucion m-a-0 m-t-1'>0.00</h3></div>
                </div>
            </div>  
            <div class="col-lg-6 col-md-6 col-sm-6">
                <div class="table-responsive">
                    <table id='pagosDevolucion-table' class="table table-condensed table-hover table-tfoot-customize table-scroll" style="width:80%;margin:auto">
                    <thead>                
                        <th style="width:60%"><?php echo $_translator->_getTranslation('Metodo');?></th>
                        <th style="width:25% !important;text-align:right"><?php echo $_translator->_getTranslation('Monto');?></th>
                        <th style="width:15% !important;text-align:right"><i class="fa fa-trash"></i></th>
                    </thead>
                    <tbody style="height: 150px">
                    </tbody>
                    </table>
                </div>  
            </div>
            <div class="clear"></div>
            
            <hr class="m-a-0 m-b-1">
            <div class='col-lg-12 col-md-12 col-sm-12 m-t-0'>
                <label><?php echo $_translator->_getTranslation('Seleccionar forma de pago')?></label>
                <div>
                <?php if($_listFormasPago!== null){
                    foreach($_listFormasPago as $key => $value){?>
                    <span class='btn btn-default' onclick="setFormaPagoDevolucion(<?php echo $key ?>);" data-toggle='modal' data-target='#modalPagoDevolucionDetalle'><?php echo $value;?></span><?php
                    }
                } ?>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="modal-footer">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <?php $element = $form->getElement('cerrar');echo $form->createOnlyElement($element);?>
            </div>
        </div>
    </div>           
    </div>
</div>