Subversion Repositories SmartDukaan

Rev

Rev 25496 | Rev 25587 | Go to most recent revision | 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">
                                <tbody>
                                        <tr>
                                                <th>Referee Id</th>
                                                <th>Referee Name</th>
                                                <th>Referee Email</th>
                                                <th>Referee Mobile</th>
                                                <th>Referal Name</th>
                                                <th>Mobile</th>
                                                <th>city</th>
                                                <th>state</th>
                                                <th>Created On</th>
                                                <th>Updated On</th>
                                                <th>Approved Timestamp</th>
                                                <th colspan = 2>Status</th>
                                        </tr>
                                                #if(!$refferals.isEmpty())
                                                #foreach( $request in $refferals )
                                                        <tr class="refferal" data="$request.getId()">
                                                                <td>$request.getId()</td>
                                                                <td>$request.getRefereeName()</td>
                                                                <td>$request.getRefereeEmail()</td>
                                                                <td>$request.getRefereeMobile()</td>
                                                                <td>$request.getFirstName() $request.getLastName()</td>
                                                                <td>$request.getMobile()</td>
                                                                <td>$request.getCity()</td>
                                                                <td>$request.getState()</td>
                                                                <td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
                                                                <td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
                                                                #if($request.getApprovedTimestamp())
                                                                <td>$request.getApprovedTimestamp().format($dateTimeFormatter)</td>
                                                                #else
                                                                <td> null </td>
                                                                #end
                                                                #if($request.getStatus()=="pending")
                                        
                                                                <td><button class="btn btn-primary reffral-approve"  data-requestid="$request.getId()"  type="button" >Approve</button>
                                                                     </td>
                                                                
                                                                     <td><button class="btn btn-primary refferal-reject" data-requestid="$request.getId()"  type="button" >Reject</button>
                                                                     </td>
                                                                     #else
                                                                     <td>$request.getStatus()</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>