Subversion Repositories SmartDukaan

Rev

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

<style>
.working-green
{
color:green;
}
.not-working-red
{
color:red;

.cover-brand {
   
    
}}


</style    
    
    <section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>Finance Sevices</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>Finance Sevices</li>
            </ol>
        </div>
    </div>
    
    
    <div class="col-lg-12">
        <table class="table table-striped table-advance table-hover table-border table-condensed table-bordered" id="financePartnerServices" style="width:100%">

            <thead class="row">
            
            <tr style="color:black;">
                <th rowspan="2">Partner Name</th>    
               #foreach($paymentOption in $paymentOptions)
                #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
                
                <th colspan="$serviceBrandsConfigMap.get($paymentOption.getId()).size()">
                $paymentOption.getName()
                </th>
               
                #end
              
              #end
              </tr>
              <tr>
              #foreach($paymentOption in $paymentOptions)
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId()))    
              <th >
              <img src="${brandUrlMap.get($serviceBrand.getBrand())}"
                                 class="cover-brand $serviceBrand.getBrand()" id="finBrandUrl" style="height: 30px;">
              </th>
              #end
              #end
              #end
            </tr>
                
            
            </thead>
            <tbody>
             #foreach($entryCr in $cr.entrySet())
             
               <tr> 
               <td>$entryCr.getValue().getBusinessName()</td>
              #foreach($paymentOption in $paymentOptions)
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId())) 
              
              #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getApplicableType()== "YES")   
             
             #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).isActive())
             
             #if($financeServicesMapOfMap.get($entryCr.getKey()).get($serviceBrand.getId()).getPartnerStatusType() == "WORKING")
            
              <td class="working-green">&#10004</td>
          
            #else
           <td class="not-working-red">&#10006;&#10006;</td>
           #end
           
             #else
            <td class="not-working">&#10006;</td>
           
            #end 
            
             #else
             <td>NA</td>
             
             #end
             
             
             
              #end
              
              #end
              #end
                
             
               
               
              
                                </tr>   
           #end
            </tbody>

        </table>
    </div>

    </section>
    
    <script>

        var dtable = $('#financePartnerServices').DataTable(
                {

                  "scrollX": true,
           
              "scrollCollapse": true,
             "scrollY": "700px",
               "fixedHeader": true,
                  "fixedColumns":   {
            leftColumns: 1
        },
                   
                });
  
   
    
    </script>