Subversion Repositories SmartDukaan

Rev

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

  <div class="pending-order-item">
  <h4 class="modelHeaderCustom" style="font-size:22px;">Order Detail</h4>
   <div class = "row">
      
      <div class="col-lg-12">
      
        <table class="table  table-advance" id = "pending-order-item-table">
                                <tbody>
                                       <tr>
                                           
                                                                 <th>Order Id</th>
                                                                 <th>Item Id</th>
                                                                 <th>Quantity</th>
                                                                 <th>Item detail</th>
                                                                 <th>Selling Price</th>
                                                                 <th>Status</th>
                                                                 <th>Action</th>
                                                                  #if($isAdmin)
                                                                     <th>Cancel</th>
                                                                     #end
                                                </tr>   
                                                        
                                        </thead>
                                                
                                                         #foreach($pendingOrderItem in $pendingOrderItems)
                                                         <tr>
                                                                 <td>$pendingOrderItem.getOrderId()</td>
                                                                 <td>$pendingOrderItem.getItemId()</td>
                                                                 <td>$pendingOrderItem.getQuantity()</td>
                                                                 <td>$itemMap.get($pendingOrderItem.getItemId()).getBrand() $itemMap.get($pendingOrderItem.getItemId()).getModelName() $itemMap.get($pendingOrderItem.getItemId()).getModelNumber() $itemMap.get($pendingOrderItem.getItemId()).getColor()</td>
                                                                 <td>$pendingOrderItem.getSellingPrice()</td>
                                                                 <td>$pendingOrderItem.getStatus()</td>
                                                                  #if($pendingOrderItem.getStatus() != "cancelled")
                                                                 #if(!$inventoryMap.get($pendingOrderItem.getItemId()))
                                                                 
                                                                  <td style="font-color:red">Out of Stock</td> 
                                                         
                                                          #else
                                                         
                                                          <td><button class="btn btn-primary add-to-bag"  data="$pendingOrderItem.getItemId()" data-toggle="modal" data-target="#bagModel"  
                                                             type="button" style="width:100%; border-radius:0px;">View</button></td>
                                                          #end 
                                                           #end 
                                                          #if($pendingOrderItem.getStatus() != "cancelled")
                                                            #if($isAdmin)
                                                                     <td><button class="btn btn-primary pendingOrderItemCancel"  data-orderitemid="$pendingOrderItem.getId()"  
                                                          
                                                             type="button" style="width:100%; border-radius:0px;">Cancel</button></td>
                                                                     #end   
                                                                    #end
                                                                
                                                        </tr>   
                                   #end
                        </tbody>
            </table>
      </div>
      </div>
      
   </div>
   

 
    
    <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" />
                                        <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>
 <script type="text/javascript">
        pendingPO = $pendingPO;
        pendingPOCustomer = $pendingPOCustomer;
        emptyBag();
 </script>