Subversion Repositories SmartDukaan

Rev

Rev 35971 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="row">
    <div class="col-lg-12">
        <table class="table table-striped table-advance table-hover table-bordered" id="wallet_addn_approved_reject">
            <thead>
            <tr>
                <th>Retailer Id</th>
                <th>Retailer Name</th>
                <th>Email</th>
                <th>City</th>
                <th>State</th>
                <th>Transaction Reference</th>
                <th>Bank Name</th>
                <th>Reference Date</th>
                <th>Amount</th>
                <th>Created On</th>
                <th>Updated On</th>
                <th>Doc</th>
                #if($rStatus == "pending")
                    <th>Status</th>
                #end
            </tr>
            </thead>
            <tbody>
                #if(!$walletRequest.isEmpty())
                    #foreach( $walletData in $walletRequest )
                    <tr class="add-wallet" data="$walletData.getId()">
                        <td>$walletData.getRetailerId()</td>
                        <td>
                            $fofoIdsAndRetailerName.get($walletData.getRetailerId()).getBusinessName()
                            #if($walletData.getFspId() > 0)
                                <br><span class="label label-info" style="font-size:10px;">Full Stock Payment</span>
                            #end
                        </td>
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getEmail()</td>
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().city</td>
                        <td>$fofoIdsAndRetailerName.get($walletData.getRetailerId()).getAddress().state</td>
                        <td>$walletData.getTransaction_reference()</td>
                        #if($walletData.getBank_name())
                            <td>$walletData.getBank_name()</td>
                        #else
                            <td> -</td>
                        #end
                        <td>$walletData.getReference_date()</td>
                        <td class="currency">$walletData.getAmount()</td>
                        <td>$walletData.getCreateTimestamp().format($dateTimeFormatter)</td>
                        <td>$walletData.getUpdateTimestamp().format($dateTimeFormatter)</td>
                        <td>
                            #if($walletData.getFspId() > 0 && $fspAttachmentMap && $fspAttachmentMap.containsKey($walletData.getId()))
                                <button type="button" class="btn btn-info btn-xs wallet-doc-view-btn"
                                        data-doc-url="${rc.contextPath}/document/$fspAttachmentMap.get($walletData.getId())">
                                    <i class="fa fa-eye"></i>
                                </button>
                            #end
                        </td>
                        #if($walletData.getStatus()=="pending")
                            <td>
                                <button class="btn btn-primary approve" data-requestid="$walletData.getId()"
                                        type="button" style="width:100%;border-radius:0px;">Approve
                                </button>

                                <button class="btn btn-primary rejected" data-requestid="$walletData.getId()"
                                        type="button" style="width:100%;border-radius:0px;">Reject
                                </button>

                            </td>
                        #end
                    </tr>
                    #end
                #else
                <tr>
                    <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                </tr>
                #end
            </tbody>
        </table>
    </div>
</div>
<script>
    $(document).ready(function () {
        var dtable = $('#wallet_addn_approved_reject').DataTable({
            "scrollX": true,
            "scrollY": "500px",
            scrollCollapse: true,
        });
    });
</script>