Subversion Repositories SmartDukaan

Rev

Rev 35971 | 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>
36242 aman 17
                <th>Doc</th>
34156 tejus.loha 18
                #if($rStatus == "pending")
19
                    <th>Status</th>
20
                #end
34157 tejus.loha 21
            </tr>
34156 tejus.loha 22
            </thead>
23
            <tbody>
24
                #if(!$walletRequest.isEmpty())
25
                    #foreach( $walletData in $walletRequest )
26
                    <tr class="add-wallet" data="$walletData.getId()">
27
                        <td>$walletData.getRetailerId()</td>
35971 aman 28
                        <td>
29
                            $fofoIdsAndRetailerName.get($walletData.getRetailerId()).getBusinessName()
30
                            #if($walletData.getFspId() > 0)
31
                                <br><span class="label label-info" style="font-size:10px;">Full Stock Payment</span>
32
                            #end
33
                        </td>
34156 tejus.loha 34
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getEmail()</td>
35
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().city</td>
36
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().state</td>
37
                        <td>$walletData.getTransaction_reference()</td>
38
                        #if($walletData.getBank_name())
39
                            <td>$walletData.getBank_name()</td>
40
                        #else
41
                            <td> -</td>
42
                        #end
43
                        <td>$walletData.getReference_date()</td>
44
                        <td class="currency">$walletData.getAmount()</td>
45
                        <td>$walletData.getCreateTimestamp().format($dateTimeFormatter)</td>
46
                        <td>$walletData.getUpdateTimestamp().format($dateTimeFormatter)</td>
36242 aman 47
                        <td>
48
                            #if($walletData.getFspId() > 0 && $fspAttachmentMap && $fspAttachmentMap.containsKey($walletData.getId()))
49
                                <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
50
                                        data-doc-url="${rc.contextPath}/document/$fspAttachmentMap.get($walletData.getId())">
51
                                    <i class="fa fa-eye"></i>
52
                                </button>
53
                            #end
54
                        </td>
34156 tejus.loha 55
                        #if($walletData.getStatus()=="pending")
56
                            <td>
57
                                <button class="btn btn-primary approve" data-requestid="$walletData.getId()"
58
                                        type="button" style="width:100%;border-radius:0px;">Approve
59
                                </button>
60
 
61
                                <button class="btn btn-primary rejected" data-requestid="$walletData.getId()"
62
                                        type="button" style="width:100%;border-radius:0px;">Reject
63
                                </button>
64
 
65
                            </td>
66
                        #end
67
                    </tr>
68
                    #end
69
                #else
70
                <tr>
71
                    <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
72
                </tr>
73
                #end
74
            </tbody>
75
        </table>
76
    </div>
77
</div>
78
<script>
79
    $(document).ready(function () {
80
        var dtable = $('#wallet_addn_approved_reject').DataTable({
81
            "scrollX": true,
82
            "scrollY": "500px",
83
            scrollCollapse: true,
84
        });
85
    });
86
</script>