Subversion Repositories SmartDukaan

Rev

Rev 23936 | Blame | Last modification | View Log | RSS feed

<style>
        .table-striped > tbody > tr:nth-child(odd) > td{
                background: white;
                background-color: white;
        }
        .table-striped > tbody > tr:nth-child(even) > td{
                background: white;
                background-color:white;
        }
        .table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
                background-color: #e98c8f;
                color:white;
        }
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .sale-details{
                cursor:pointer;
        }
</style>
<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>SCHEME</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>WALLET REQUEST</li>                                                        
                        </ol>
                </div>
        </div>
        
        <input id="url" name="url" type="hidden" value="$url"/>
        <div id="add-wallet-request-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Retailer Id</th>
                                                <th>Retailer Name</th>
                                                <th>Email</th>
                                                <th>City</th>
                                                <th>State</th>
                                                <th>Transaction Reference</th>
                                                <th>Amount</th>
                                                <th>Created On</th>
                                                <th>Updated On </th>
                                                #if($rStatus == "pending")
                                                <th>Status</th>
                                                #end
                                        </tr>
                                                #if(!$walletRequest.isEmpty())
                                                #foreach( $request in $walletRequest )
                                                        <tr class="add-wallet" data="$request.getId()">
                                                                <td>$request.getRetailerId()</td>
                                                                <td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getBusinessName()</td>
                                                                <td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getEmail()</td>
                                                                <td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getAddress().city</td>
                                                                <td>$fofoIdsAndRetailerName.get($request.getRetailerId()).getAddress().state</td>
                                                                <td>$request.getTransaction_reference()</td>
                                                                <td>$request.getAmount()</td>
                                                                <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
                                                                <td>$request.getUpdateTimestamp().format($dateTimeFormatter)</td>
                                                                #if($request.getStatus()=="pending")
                                                                <td><button class="btn btn-primary approve" data-requestid="$request.getId()"  type="button" style="width:100%;border-radius:0px;">Approve</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>
    </div>
    
    #if(!$walletRequest.isEmpty())
        <div class="row" id="add-wallet-request-paginated">
                <div class="col-lg-9">
                        <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                </div>
                <div class="col-lg-3" style="text-align:right;">
                                <div class="btn-group" style="width:40%">
                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
                                </div>
                                <div class="btn-group" style="width:40%">
                                        #if($end >= $size)
                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
                                        #else
                                                <button class="btn btn-primary next" style="width:100%">Next</button>
                                        #end
                                </div>
                </div>
            </div>
    #end
</section>
<div id="add-wallet-request-container" style="background:white;background-color:white;">
</div>