Subversion Repositories SmartDukaan

Rev

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

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"> Pending Wod-Finance Mapping</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 Wod-Finance Mapping</li>
            </ol>
        </div>
    </div>

    <div class="col-lg-12">
        <table class="table table-bordered" style="text-align: center">
            <thead>
            <tr>
                <th colspan="4" style="text-align: center">Partner Details</th>
                <th colspan="$brandCommits.size()" style="text-align: center">Wod Status</th>
                <th colspan="$paperFinanceOptions.size()">Wod Finance mapping Status</th>
            </tr>

            <tr>
                <th rowspan="2">Id</th>
                <th rowspan="2">Code</th>
                <th rowspan="2">Outlet Name</th>
                <th rowspan="2">City</th>
                #foreach($brand in $brandCommits)
                    <th rowspan="2">$brand.getBrand()</th>
                #end
                #foreach($po in $paperFinanceOptions)
                    #set($const2 = $serviceBrandsConfigsMap.get($po.getId()).size())
                    <th colspan="$const2" style="text-align: center">$po.getName()</th>
                #end
            </tr>
            <tr>
                #foreach($po in $paperFinanceOptions)
                    #foreach($serviceBrand in $serviceBrandsConfigsMap.get($po.getId()))
                        <th>$serviceBrand.getBrand()</th>
                    #end
                #end
            </tr>

            </thead>
            <tbody>
            <!-- Partner Details-->
                #foreach($pop in $partnerOnBoardingPanels)
                <tr class="dealer-mapping-hold">
                    <td>$pop.getId()</td>
                    <td>$pop.getCode()</td>
                    <td>$pop.getOutLetName()</td>
                    <td>$pop.getCity()</td>

                    <!-- Wod Details-->
                    #set ($wodFinMappingModel = $wodFinMappingModelMap.get($pop.getCode()))
                    #foreach($brand in $brandCommits)
                        #set ($model=$wodFinMappingModel.get($brand.getBrand()))
                        #if($model)
                            #if($model.getDmsCode()!="")
                                <td style="color:green">ON</td>
                            #else
                                <td style="color:red">Pending</td>
                            #end
                        #else
                            <td style="color:#0062cc">NA</td>
                        #end
                    #end

                    <!-- Wod finance mapping Details-->
                    #set ($wodFinModelMap = $codeServiceBrandWodFinMappingModelMap.get($pop.getCode()))
                    #foreach($po in $paperFinanceOptions)
                        #if($wodFinModelMap.containsKey($po.getName()))
                            #set($brandModelMap = $wodFinModelMap.get($po.getName()))
                            #foreach($sb in $serviceBrandsConfigsMap.get($po.getId()))
                                #if($brandModelMap.containsKey($sb.getBrand()))
                                    #set ($model = $brandModelMap.get($sb.getBrand()))
                                    #if($model.getActive())
                                        <td style="color:green">Active</td>
                                    #else
                                        <td style="color:red">Pending</td>
                                    #end
                                #else
                                    <td>--</td>
                                #end
                            #end
                        #else
                            #set($const2 = $serviceBrandsConfigsMap.get($po.getId()).size())
                            <td colspan="$const2" style="text-align: center"> -</td>
                        #end
                    #end
                </tr>
                #end
            </tbody>
        </table>
    </div>
</section>