Subversion Repositories SmartDukaan

Rev

Rev 33612 | 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>Partner 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>
                        <th>Pay Method</th>
                        <th>Pay Mode</th>
                        <th>Order Item Id</th>
                        <th>Item Id</th>
                        <th>Quantity</th>
                        <th>Item Details</th>
                        <th>Selling Price</th>
                        <th>Order Item Status</th>
                        <th>Created on</th>
                        <th>Verified On</th>
                        <th>Insurance Name</th>
                        <th>Insurance Price</th>
                        <th>Actions</th>
                    </tr>
                    </thead>
                    <tbody>
                        #if(!$pendingOrderItems.isEmpty())
                            #foreach( $pendingOrderItem in $pendingOrderItems)
                            <tr class="pendingOrder" data="$pendingOrderItem.getItemId()">
                                <input type="hidden" id="poItemId" value="$pendingOrderItem.getId()"/>
                                <input type="hidden" id="poId" value="$pendingOrderItem.getOrderId()"/>
                                <td>$pendingOrderItem.getOrderId()</td>
                                <td>$pendingOrderItem.getPendingOrder().getCustomerAddress().getName()</td>
                                #if($pendingOrderItem.getPendingOrder().getCustomerAddress().getLastName())
                                    <td>$pendingOrderItem.getPendingOrder().getCustomerAddress().getLastName()</td>
                                #else
                                    <td></td> #end
                                <td>$pendingOrderItem.getPendingOrder().getCustomerAddress().getPhoneNumber()</td>
                                <td>$pendingOrderItem.getPendingOrder().getStatus()</td>
                                <td>$pendingOrderItem.getPendingOrder().getPayMethodDescription()</td>
                                #if($pendingOrderItem.getPendingOrder().getTotalAmount() ==
                                    $pendingOrderItem.getPendingOrder().getPaidAmount())
                                    <td>ONLINE</td> #else
                                    <td>OFFLINE</td> #end

                                <td>$pendingOrderItem.getId()</td>
                                <td>$pendingOrderItem.getItemId()</td>
                                <td>$pendingOrderItem.getQuantity()</td>
                                <td>$pendingOrderItem.getItemName()</td>
                                <td>$pendingOrderItem.getSellingPrice()</td>
                                <td>$pendingOrderItem.getStatus()</td>
                                <td>$pendingOrderItem.getCreateTimestamp().format($dateTimeFormatter)</td>
                                #if($pendingOrderItem.getVerifiedTimestamp())
                                    <td>$pendingOrderItem.getVerifiedTimestamp().format($dateTimeFormatter)</td>
                                #else
                                    <td></td> #end

                                #if($pendingOrderPlansMap.get($pendingOrderItem.getId()))
                                    <td>$pendingOrderPlansMap.get($pendingOrderItem.getId()).get(0).getPlanName()</td>
                                    <td>$pendingOrderPlansMap.get($pendingOrderItem.getId()).get(0).getPremiumPrice()</td>
                                #else
                                    <td></td>
                                    <td></td>
                                #end
                                #if($inventoryMap.get($pendingOrderItem.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
                            </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>


<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 - (Recommend you to bill imeis from left) <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>