
<? global $vis_language; ?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><? echo$vis_language['TXTEDITTRANSACTION']; ?></h4>
        </div>
        <div class="modal-body">
            <div class="row">
                <div class="col-sm-12">
                    <form role="form" class="form-horizontal" name="vis_edit_balance_form" id="vis_edit_balance_form">
                        <div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTAMOUNT'].' ('.$transaction_info['currency'].')'; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_balance" id="vis_balance" value="<?php echo $transaction_info['amount']; ?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"><?= $vis_language['TXTDETAILS']; ?></label>
                            <div class="col-sm-9">
                                <textarea class="form-control input-sm" name="vis_details" id="vis_details"><?php echo $transaction_info['content']; ?></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTTRANSACTIONID']; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_transaction" id="vis_transaction" value="<?php echo $transaction_info['transaction_id']; ?>">
                                <input type="hidden" name="vis_balance_id" value="<? echo $transaction_info['balance_id']; ?>" />
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="modal-footer">
			<a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>
            <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'billing', 'vis_operation':'update_balance', 'vis_form':'vis_edit_balance_form','vis_client_id':<? echo $transaction_info['client_id'];?>});"><? echo $vis_language['TXTUPDATE']; ?></a>
        </div>
    </div>
</div>
