Subversion Repositories SmartDukaan

Rev

Rev 28961 | Blame | Last modification | View Log | RSS feed

<div class="modal-header">
<button type="button" class="close" id = "cancel-model" data-dismiss="modal">&times;</button>
         <h4 class="modal-title">Terms & Conditions</h4>      
</div>
        <div class="modal-body1">
         <div style="margin-top: 15px;" class="offer-margin-table">
  
  
        <div class = "row">
                <div class="col-lg-12">
                        <div style = "font-size:20px; font-weight:bold">$offer.getName() </div>
                        <table class="table  table-advance" id = "margin-detail">
                                <tbody>
                                        <tr>
                                                <th></th>
                                                <th  style="text-align:center">Sale Target</th>
                                                <th  style="text-align:center">Earnings</th>
                                        </tr>   
                                                 #foreach($om in $offer.getTargetSlabs())
                                                 <tr>
                                                        <td>Target $velocityCount</td>
                                                        <td class="currency">$om.getOnwardsAmount()</td>
                                                        #if($om.getTargetDescription() && $om.getTargetDescription().replaceAll("\\s", "").length() > 0)
                                                                <td>$om.getTargetDescription()</td>
                                                        #else
                                                                <td>
                                                                        <table class="table table-sm table-bordered table-condensed">
                                                                        <tbody>
                                                                                <tr>
                                                                                        <th>Models</th>
                                                                                        <th>Payout</th>
                                                                                </tr>
                                                                        </tbody>
                                                                        #foreach($itemCriteriaPayout in $om.getItemCriteriaPayouts())
                                                                                <tr>
                                                                                #set($s="abc")
                                                                                        <td>$itemCriteriaPayout.getItemCriteriaString()</td>
                                                                                        <td>Rs.$s.format("%.0f", $itemCriteriaPayout.getPayoutSlabs().get(0).getPayoutAmount()) per unit</td>
                                                                                </tr>
                                                                        #end
                                                                        </table>
                                                                </td>
                                                        #end
                                                 </tr>
                                                 #end
                                </tbody>
                </table>
            </div>
  </div>
      
      
      
      <div class="row">
      
        <div class="col-lg-12">
                  <ul id="descriptionMenu" style ="text-align:left">
                                                    #foreach( $product in $offer.getTerms().split(";") )
              
                                <li  style="padding:5px;list-style:square;">
                                        #set($sub = $product.split("\|"))
                                        $sub[0]
                                        
                                        #if($sub.size()>1)
                                        <ul>
                                        #foreach( $i in [2..$sub.size()])
                                                #set($j = $i - 1)
                                                <li>$sub[$j]</li>
                                        #end
                                        </ul>
                                        #end
                                </li>
              
                                #end
                                   </ul>
                   
         </div>
      </div>
      
      </div>
      </div>
<div class="modal-footer">
        <button type="button" data-dismiss="modal" class="btn btn-default cancel-description">Cancel</button>
   </div>