Subversion Repositories SmartDukaan

Rev

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

<style>
.btn:hover, .btn:focus {
        color: grey;
        text-decoration: none;
}

.modal-dialog.modal-lg {
        left: 10%;
        right: auto;
        width: 80%;
}

.modal-content {
        background: white;
}

.border-highlight {
        border: 3px solid red;
}

td.highlight {
        background-color: yellowgreen !important;
}
</style>


<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header">
                                <i class="icon_document_alt"></i>Raise Claim
                        </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>Raise Claim</li>
                        </ol>
                </div>
        </div>



        <div class="col-lg-12">

                <table class="table table-border table-condensed table-bordered"
                        id="pending-order-item">
                        <thead>
                                <tr>
                                        <th>OrderId</th>
                                        <th>First Name</th>
                                        <th>Last Name</th>
                                        <th>Mobile</th>
                                        <th>Order Status</th>
                                        <th>Pay Mode</th>
                                        <th>Pay Method</th>

                                        <th>Order Item Id</th>
                                        <th>Item Id</th>
                                        <th>Item Details</th>
                                        <th>Selling Price</th>
                                        <th>Order Item Status</th>
                                        <th>Created on</th>
                                        <th>Actions</th>
                                </tr>
                        </thead>
                        <tbody>
                                #if(!$pendingOrder.isEmpty()) #foreach( $request in
                                $pendingOrderItem)
                                <tr class="pendingOrder" data="$request.getItemId()">
                                        <td>$request.getOrderId()</td>
                                        <td>$request.getPendingOrder().getCustomerAddress().getName()</td>
                                        #if($request.getPendingOrder().getCustomerAddress().getLastName())
                                        <td>$request.getPendingOrder().getCustomerAddress().getLastName()</td>
                                        #else
                                        <td></td> #end
                                        <td>$request.getPendingOrder().getCustomerAddress().getPhoneNumber()</td>
                                        <td>$request.getPendingOrder().getStatus()</td>
                                        <td>$request.getPendingOrder().getPayMethodDescription()</td>
                                        #if($request.getPendingOrder().getTotalAmount() ==
                                        $request.getPendingOrder().getPaidAmount())
                                        <td>ONLINE</td> #else
                                        <td>OFFLINE</td> #end
                                        <td>$request.getId()</td>
                                        <td>$request.getItemId()</td>
                                        <td>$request.getItemName()</td>
                                        <td>$request.getSellingPrice()</td>
                                        <td>$request.getStatus()</td>
                                        <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
                                        <td><button class="btn btn-primary raiseClaim"
                                                        data-poid="$request.getOrderId()"
                                                        data-poitemid="$request.getId()" type="button"
                                                        style="width: 100%; border-radius: 0px;">Raise Claim</button></td>

                                </tr>
                                #end
                                <script type="text/javascript">
                                        $(document).ready(function() {
                                                $('#pending-order-item').dataTable({
                                                        "bPaginate" : true,
                                                        "bLengthChange" : true,
                                                        "bFilter" : true,
                                                        "bInfo" : false,
                                                        "bAutoWidth" : false
                                                });
                                        });
                                </script>
                                #else
                                <tr>
                                        <td colspan="12" style="text-align: center;">NO MATCHING DATA
                                                FOUND FOR CRITERIA</td>
                                </tr>
                                #end
                        </tbody>
                </table>
        </div>



        </div>
        </div>
</section>