Subversion Repositories SmartDukaan

Rev

Rev 28339 | Rev 28350 | 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>FOfo Pending Order
                        </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>Pending Order</li>
                        </ol>
                </div>
        </div>



        <div id="pending-order-table">
                <div class="row">
                        <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> #if($customRetailersMap)
                                                        <th>Partner</th> #end
                                                        <th>Pay Method</th>
                                                        <th>Pay Mode</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> #if($isAdmin)
                                                        <th>Actions</th>
                                                        <th></th>#else
                                                        <th>Actions</th> #end
                                                </tr>
                                        </thead>
                                        <tbody>
                                                #if(!$pendingOrder.isEmpty()) #foreach( $request in
                                                $pendingOrderItem)
                                                <tr class="pendingOrder" data="$request.getItemId()">
                                                        <input type="hidden" id="poItemId" value="$request.getId()" />
                                                        <input type="hidden" id="poId" value="$request.getOrderId()" />
                                                        <td>$request.getOrderId()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getFirstName()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getLastName()</td>
                                                        <td>$request.getPendingOrder().getCustomer().getMobileNumber()</td>
                                                        <td>$request.getPendingOrder().getStatus()</td>
                                                        #if($customRetailersMap)
                                                        #if($customRetailersMap.get($request.getPendingOrder().getFofoId()))
                                                        <td>$customRetailersMap.get($request.getPendingOrder().getFofoId()).getBusinessName()</td>
                                                        #else
                                                        <td></td> #end #end
                                                        <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>
                                                        #if(!$isAdmin)
                                                        #if($inventoryMap.get($request.getItemId()).getAvailability()>0)
                                                        <td>

                                                                <button class="btn btn-primary add-bag-submit"
                                                                        data-toggle="modal" data-target="#bagModel" type="button"
                                                                        style="width: 100%; border-radius: 0px;">Add To Bag</button>
                                                        </td> #else
                                                        <td style="font-color: red">Out of Stock</td> #end #else
                                                        <td>
                                                                <button class="btn btn-primary verify-order-item"
                                                                        data-toggle="modal" type="button"
                                                                        style="width: 100%; border-radius: 0px;">Mark Verify</button>
                                                        </td>
                                                        <td>
                                                                <button class="btn btn-primary cancel-order-item"
                                                                        data-toggle="modal" type="button"
                                                                        style="width: 100%; border-radius: 0px;">Cancel</button>
                                                        </td> #end
                                                </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 class="col-lg-6">
                                <div class="pending-order-container"></div>
                        </div>
                </div>
        </div>
</section>


<div id="bagModel" class="modal" role="dialog">
        <div class="modal-dialog modal-md">
                <!-- Modal content-->
                <div class="modal-content">
                        <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal">&times;</button>
                                <h4 class="modal-title">Add Item To Bag</h4>
                        </div>
                        <div class="modal-body" style="min-height: 200px">
                                <div id="catalogModalBody">
                                        <input type="hidden" class="itemId" /> <input type="hidden"
                                                class="availability" /> <input type="hidden" class="poitemId" />
                                        <input type="hidden" class="poId" />
                                        <h4 class="bagModalProductInfo modelHeaderCustom">
                                                Product Details : <span></span>
                                        </h4>
                                        <h4 class="bagModalAvailability modelHeaderCustom">
                                                Availability : <span></span>
                                        </h4>
                                        <h4 class="bagModalEarlyImeis modelHeaderCustom">
                                                Imeis to bill: <span></span>
                                        </h4>
                                        <h4 class="bagModalQuantity modelHeaderCustom">
                                                Enter Quantity <span> <input type="number" min="1"
                                                        class="form-control quantity"></input>
                                                </span>
                                        </h4>
                                        <hr />
                                        <span>
                                                <button type="submit" id="addToBagButton" class="btn btn-primary">Submit!</button>
                                        </span>
                                </div>
                        </div>
                </div>
        </div>
</div>