Subversion Repositories SmartDukaan

Rev

Rev 33247 | Rev 33261 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
33247 ranu 1
<style>
2
    #transactionList_wrapper .col-sm-6 {
3
        padding: 2px !important;
4
    }
5
 
6
    #transactionList_length, #transactionList_filter {
7
        padding: 8px !important;
8
    }
9
</style>
10
<section class="wrapper">
11
    <div class="row">
12
        <div class="col-lg-12">
33257 ranu 13
 
33247 ranu 14
            <ol class="breadcrumb">
15
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
16
                <li><i class="icon_document_alt"></i>Warehouse Management</li>
17
                <input type="hidden" id="firstTxnId" value="$firstTransactionId">
18
            </ol>
19
        </div>
20
    </div>
21
 
22
 
23
    <div class="col-lg-4">
24
        <div class="row">
25
            <div class="well" style="padding: 10px;">
33257 ranu 26
                <div class="col-md-6"><p><b>Transaction List</b></p></div>
27
                <div class="col-md-6">
28
                    <select class="form-control page-header" id="selectedWarehouse" disabled>
29
                        #foreach($warehouseEntry in $warehouseMap.entrySet())
30
                            <option value="$warehouseEntry.getKey()">$warehouseEntry.getValue()</option>
31
                        #end
32
                    </select>
33
                </div>
34
 
33247 ranu 35
                <div>
36
                    <table class="table table-bordered" id="transactionList">
37
                        <thead>
38
                        <tr>
39
                            <th>Txn Id</th>
40
                            <th>Retailer Name</th>
41
                            <th>Created</th>
42
                        </tr>
43
                        </thead>
44
                        <tbody>
45
                            #foreach($order in $transactionIdByOrder)
46
                            <tr class="order_by_transaction" data-transaction="$order.getTransactionId()">
47
                                <td>$order.getTransactionId()</td>
48
                                <td>
49
                                    <span>
50
                                        #if($order.getRetailerName())
51
                                            $order.getRetailerName()
52
                                        #end
53
                                        #if($order.getRetailerCity() && $order.getRetailerState())
54
                                            ($order.getRetailerCity(), $order.getRetailerState())
55
                                        #end
56
                                    </span>
57
                                </td>
58
                                <td>$order.getCreateTimestamp().format($dateFormatter)</td>
59
                            </tr>
60
                            #end
61
                        </tbody>
62
                    </table>
63
                </div>
64
            </div>
65
        </div>
66
    </div>
67
    <div class="col-lg-8" id="transaction-detail-container">
68
        <div class="row" id="transaction-detail-container">
69
 
70
        </div>
71
    </div>
72
 
73
 
74
</section>
75
 
76
 
77
<script>
78
    $(document).ready(function () {
79
        $('#transactionList').DataTable(
80
                {
81
                    "bPaginate": true,
82
                    "bLengthChange": true,
83
                    "bFilter": true,
84
                    "bInfo": false,
85
                    "bAutoWidth": false
86
                }
87
        );
88
 
89
    });
90
</script>