Subversion Repositories SmartDukaan

Rev

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>
35971 aman 27
                        <td>
28
                            $fofoIdsAndRetailerName.get($walletData.getRetailerId()).getBusinessName()
29
                            #if($walletData.getFspId() > 0)
30
                                <br><span class="label label-info" style="font-size:10px;">Full Stock Payment</span>
31
                            #end
32
                        </td>
34156 tejus.loha 33
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getEmail()</td>
34
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().city</td>
35
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().state</td>
36
                        <td>$walletData.getTransaction_reference()</td>
37
                        #if($walletData.getBank_name())
38
                            <td>$walletData.getBank_name()</td>
39
                        #else
40
                            <td> -</td>
41
                        #end
42
                        <td>$walletData.getReference_date()</td>
43
                        <td class="currency">$walletData.getAmount()</td>
44
                        <td>$walletData.getCreateTimestamp().format($dateTimeFormatter)</td>
45
                        <td>$walletData.getUpdateTimestamp().format($dateTimeFormatter)</td>
46
                        #if($walletData.getStatus()=="pending")
47
                            <td>
48
                                <button class="btn btn-primary approve" data-requestid="$walletData.getId()"
49
                                        type="button" style="width:100%;border-radius:0px;">Approve
50
                                </button>
51
 
52
                                <button class="btn btn-primary rejected" data-requestid="$walletData.getId()"
53
                                        type="button" style="width:100%;border-radius:0px;">Reject
54
                                </button>
55
 
56
                            </td>
57
                        #end
58
                    </tr>
59
                    #end
60
                #else
61
                <tr>
62
                    <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
63
                </tr>
64
                #end
65
            </tbody>
66
        </table>
67
    </div>
68
</div>
69
<script>
70
    $(document).ready(function () {
71
        var dtable = $('#wallet_addn_approved_reject').DataTable({
72
            "scrollX": true,
73
            "scrollY": "500px",
74
            scrollCollapse: true,
75
        });
76
    });
77
</script>