Subversion Repositories SmartDukaan

Rev

Rev 25714 | Blame | Compare with Previous | Last modification | View Log | RSS feed

 
 
 
 
  <script>
      $(document).ready(function() {
   $('#chckcancelHead').click(function () {
        if (this.checked == false) {
            $('.chcktbl:checked').attr('checked', false);
        }
        else {
            $('.chcktbl:not(:checked)').attr('checked', true);
        }
   
                  });
         });
       </script> 
 
 
 <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Cancel Order</h4>
       </div>
 <div class="modal-body">

<div class=form-inline'>
<div class="col-lg-6">
           <select class='form-control input-sm' id='selectreason' onchange="myFunction()" >
           <option selected disabled>Reasons</option>
           <option value='The model is currently not in stock with Brand/ND'>The model is currently not in stock with Brand/ND</option>
           <option value='The model is currently not available in the specific color with Brand/ND'>The model is currently not available in the specific color with Brand/ND</option>
           <option value='The model/color is discontinued.'>The model/color is discontinued.</option>
           <option value='other'>other</option>
           </select>
           <br>
          <textarea class='form-control' rows='1' id='textreason'></textarea>
          <br>
      </div>
      
      <div class="col-lg-6">
       <textarea class='form-control' rows='3' id='orderIds'></textarea>
      </div>
      <br>
 </div>
  
  <br>
   <div class="-selected-cancel-order-table">
   
      <div class = "row">
    
                        <div class="col-lg-12">
                
                     <table class="table  table-advance" id = "cancel-order-table">
                                <tbody>
                                         <tr>
                                                <td><input type="checkbox" id="chckcancelHead"/></td>
                                                                <th>Item Id</th>
                                                        <th>OrderId</th>
                                                        <th>Description</th>
                                                        <th>Customer Name </th>
                                                        <th>Quantity</th>
                                                        <th>City</th>
                                                        <th>State</th>
                                                        <th>Store Code</th>
                                                        
                                                
                                                </tr>   
                                                        
                                        </thead>
                                                
                                                         #foreach($order in $inProcessCancelOrders )
                                                                <tr>
                                                                    <td> <input type="checkbox" class ="chcktbl" name="partnerOrderCheck" /></td>
                                                                <td>$order.getLineItem().getItemId()</td>
                                                                <td>$order.getId()</td>
                                                                        <td>$order.getLineItem().getItem().getItemDescription()</td>
                                                                        <td>$order.getRetailerName()</td>
                                        <td>$order.getLineItem().getQuantity()</td>
                                        <td>$order.getRetailerCity()</td>
                                        <td>$order.getRetailerState()</td>
                                        <td>$storeIdAndFofoIdMap.get($order.getRetailerId())</td>
                                       
                                                                
                                                        </tr>   
                                   #end
                        </tbody>
            </table>
        </div>  
</div>  
</div>
</div>  
        <div class="modal-footer">
                        <button type="button" data-dismiss="modal" class="btn btn-default cancel-order-request">Cancel</button>
                        <button type="button" class="btn btn-default cancel-order-submit">Submit</button>
                   
           </div>