Subversion Repositories SmartDukaan

Rev

Rev 33257 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<style>
    #transactionList_wrapper .col-sm-6 {
        padding: 2px !important;
    }

    #transactionList_length, #transactionList_filter {
        padding: 8px !important;
    }
</style>
<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <div class="row">
                <div class="col-lg-6">
                    <h3 class="page-header"><i class="icon_document_alt"></i>LOGISTICS</h3>
                </div>
                <div class="col-lg-6">
                    <div class="row">
                        <div class="col-lg-6"></div>
                        <div class="col-lg-6">
                            <select class="form-control page-header" id="selectedWarehouse" disabled>
                                #foreach($warehouseEntry in $warehouseMap.entrySet())
                                    <option value="$warehouseEntry.getKey()">$warehouseEntry.getValue()</option>
                                #end
                            </select>
                        </div>
                    </div>
                </div>
            </div>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>Warehouse Management</li>
                <input type="hidden" id="firstTxnId" value="$firstTransactionId">
            </ol>
        </div>
    </div>


    <div class="col-lg-4">
        <div class="row">
            <div class="well" style="padding: 10px;">
                <p><b>Transaction List</b></p>
                <div>
                    <table class="table table-bordered" id="transactionList">
                        <thead>
                        <tr>
                            <th>Txn Id</th>
                            <th>Retailer Name</th>
                            <th>Created</th>
                        </tr>
                        </thead>
                        <tbody>
                            #foreach($order in $transactionIdByOrder)
                            <tr class="order_by_transaction" data-transaction="$order.getTransactionId()">
                                <td>$order.getTransactionId()</td>
                                <td>
                                    <span>
                                        #if($order.getRetailerName())
                                            $order.getRetailerName()
                                        #end
                                        #if($order.getRetailerCity() && $order.getRetailerState())
                                            ($order.getRetailerCity(), $order.getRetailerState())
                                        #end
                                    </span>
                                </td>
                                <td>$order.getCreateTimestamp().format($dateFormatter)</td>
                            </tr>
                            #end
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div class="col-lg-8" id="transaction-detail-container">
        <div class="row" id="transaction-detail-container">

        </div>
    </div>


</section>


<script>
    $(document).ready(function () {
        $('#transactionList').DataTable(
                {
                    "bPaginate": true,
                    "bLengthChange": true,
                    "bFilter": true,
                    "bInfo": false,
                    "bAutoWidth": false
                }
        );

    });
</script>