Subversion Repositories SmartDukaan

Rev

Rev 24093 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="row">
        #if(!$unsettledPayment.isEmpty())
                <div class="col-lg-5">
            
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Id</th>
                                                <th>Transaction Reference</th>
                                                <th>Amount</th>
                                                <th>ReferenceDate</th>
                                                <th>Description</th>
                                                <th>CreatedTimestamp</th>
                                                <th>Status</th>
                                                
                                        </tr>
                                
                                                #foreach( $request in $unsettledPayment )
                                                        <tr class="unsettledPayment" data="$request.getId()">
                                                                <td>$request.getId()</td>
                                                                <td>$request.getTransaction_reference()</td>
                                                                <td>$request.getAmount()</td>
                                                                <td>$request.getReference_date().format($dateTimeFormatter)</td>
                                                                <td>$request.getDescription()</td>      
                                                                <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
                                                                <td><button class="btn btn-primary approved"  data-id="$request.getId()" type="button" style="width:100%;border-radius:0px;">Approve</button>
                                                                  </td>
                                                        </tr>   
                                   #end
                                        
                                </tbody>
                        </table>
                        <button class="btn btn-primary approve" type="button" style="width:50%;border-radius:0px;margin-left:500px">Approve</button>
                        </div>
                
                        #else
                        <div style = "font-size:15px;margin-left:30px;">
                                <p>Are you sure you want to Approve the request</p>
                                </div>
                                <div class="modal-footer">
                        <button type="button" class="btn btn-default cancel">Cancel</button>
                        <button type="button" class="btn btn-default confirm">Confirm</button>
                   
                </div>
                
                 #end
                
            </div>