Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
23936 tejbeer 1
<div class="row">
34156 tejus.loha 2
    <div class="col-lg-12">
3
        <table class="table table-striped table-advance table-hover table-bordered" id="wallet_addn_approved_reject">
4
            <thead>
34157 tejus.loha 5
            <tr>
34156 tejus.loha 6
                <th>Retailer Id</th>
7
                <th>Retailer Name</th>
8
                <th>Email</th>
9
                <th>City</th>
10
                <th>State</th>
11
                <th>Transaction Reference</th>
12
                <th>Bank Name</th>
13
                <th>Reference Date</th>
14
                <th>Amount</th>
15
                <th>Created On</th>
16
                <th>Updated On</th>
17
                #if($rStatus == "pending")
18
                    <th>Status</th>
19
                #end
34157 tejus.loha 20
            </tr>
34156 tejus.loha 21
            </thead>
22
            <tbody>
23
                #if(!$walletRequest.isEmpty())
24
                    #foreach( $walletData in $walletRequest )
25
                    <tr class="add-wallet" data="$walletData.getId()">
26
                        <td>$walletData.getRetailerId()</td>
27
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getBusinessName()</td>
28
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getEmail()</td>
29
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().city</td>
30
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().state</td>
31
                        <td>$walletData.getTransaction_reference()</td>
32
                        #if($walletData.getBank_name())
33
                            <td>$walletData.getBank_name()</td>
34
                        #else
35
                            <td> -</td>
36
                        #end
37
                        <td>$walletData.getReference_date()</td>
38
                        <td class="currency">$walletData.getAmount()</td>
39
                        <td>$walletData.getCreateTimestamp().format($dateTimeFormatter)</td>
40
                        <td>$walletData.getUpdateTimestamp().format($dateTimeFormatter)</td>
41
                        #if($walletData.getStatus()=="pending")
42
                            <td>
43
                                <button class="btn btn-primary approve" data-requestid="$walletData.getId()"
44
                                        type="button" style="width:100%;border-radius:0px;">Approve
45
                                </button>
46
 
47
                                <button class="btn btn-primary rejected" data-requestid="$walletData.getId()"
48
                                        type="button" style="width:100%;border-radius:0px;">Reject
49
                                </button>
50
 
51
                            </td>
52
                        #end
53
                    </tr>
54
                    #end
55
                #else
56
                <tr>
57
                    <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
58
                </tr>
59
                #end
60
            </tbody>
61
            <tfoot>
34157 tejus.loha 62
            <tr>
63
                <th>Retailer Id</th>
64
                <th>Retailer Name</th>
65
                <th>Email</th>
66
                <th>City</th>
67
                <th>State</th>
68
                <th>Transaction Reference</th>
69
                <th>Bank Name</th>
70
                <th>Reference Date</th>
71
                <th>Amount</th>
72
                <th>Created On</th>
73
                <th>Updated On</th>
34156 tejus.loha 74
                #if($rStatus == "pending")
34157 tejus.loha 75
                    <th>Status</th>
34156 tejus.loha 76
                #end
34157 tejus.loha 77
            </tr>
34156 tejus.loha 78
            </tfoot>
79
        </table>
80
    </div>
81
</div>
82
<script>
83
    $(document).ready(function () {
84
        var dtable = $('#wallet_addn_approved_reject').DataTable({
85
            "scrollX": true,
86
            "scrollY": "500px",
87
            scrollCollapse: true,
88
        });
89
    });
90
</script>