Subversion Repositories SmartDukaan

Rev

Rev 28761 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
28758 amit.gupta 1
<style>
2
.working-green
3
{
4
color:green;
5
}
6
.not-working-red
7
{
8
color:red;
9
 
10
.cover-brand {
11
 
12
 
13
}}
14
 
15
 
16
</style    
17
 
18
    <section class="wrapper">
19
    <div class="row">
20
        <div class="col-lg-12">
21
            <h3 class="page-header"><i class="icon_document_alt"></i>Finance Sevices</h3>
22
            <ol class="breadcrumb">
23
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
24
                <li><i class="icon_document_alt"></i>Finance Sevices</li>
25
            </ol>
26
        </div>
27
    </div>
28
 
29
 
30
    <div class="col-lg-12">
31
        <table class="table table-striped table-advance table-hover table-border table-condensed table-bordered" id="financePartnerServices" style="width:100%">
32
 
33
            <thead class="row">
34
 
35
            <tr style="color:black;">
36
                <th rowspan="2">Partner Name</th>    
37
               #foreach($paymentOption in $paymentOptions)
38
                #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
39
 
40
                <th colspan="$serviceBrandsConfigMap.get($paymentOption.getId()).size()">
41
                $paymentOption.getName()
42
                </th>
43
 
44
                #end
45
 
46
              #end
47
              </tr>
48
              <tr>
49
              #foreach($paymentOption in $paymentOptions)
50
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
51
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId()))    
52
              <th >
53
              <img src="${brandUrlMap.get($serviceBrand.getBrand())}"
54
                                 class="cover-brand $serviceBrand.getBrand()" id="finBrandUrl" style="height: 30px;">
55
              </th>
56
              #end
57
              #end
58
              #end
59
            </tr>
60
 
61
 
62
            </thead>
63
            <tbody>
64
             #foreach($entry in $financeServicesMapOfMap.entrySet())
65
               <tr> 
66
               <td>$cr.get($entry.getKey()).getBusinessName()</td>
67
              #foreach($paymentOption in $paymentOptions)
68
              #if($serviceBrandsConfigMap.containsKey($paymentOption.getId()))
69
              #foreach($serviceBrand in $serviceBrandsConfigMap.get($paymentOption.getId())) 
70
 
71
              #if($entry.getValue().get($serviceBrand.getId()).getApplicableType()== "YES")   
72
 
73
             #if($entry.getValue().get($serviceBrand.getId()).isActive())
74
 
75
             #if($entry.getValue().get($serviceBrand.getId()).getPartnerStatusType() == "WORKING")
76
 
77
              <td class="working-green">&#10004</td>
78
 
79
            #else
80
           <td class="not-working-red">&#10006;&#10006;</td>
81
           #end
82
 
83
             #else
84
            <td class="not-working">&#10006;</td>
85
 
86
            #end 
87
 
88
             #else
89
             <td>NA</td>
90
 
91
             #end
92
 
93
 
94
 
95
              #end
96
 
97
              #end
98
              #end
99
 
100
 
101
 
102
 
103
 
104
				</tr>	
105
           #end
106
            </tbody>
107
 
108
        </table>
109
    </div>
110
 
111
    </section>
112
 
113
    <script>
114
 
115
        var dtable = $('#financePartnerServices').DataTable(
116
                {
117
 
118
                    "bPaginate": true,
119
                    "bLengthChange": true,
120
                    "bFilter": true,
121
                    "bInfo": false,
122
                    "bAutoWidth": false,
123
                    "scrollX": true,
124
                  fixedColumns:   {
125
            leftColumns: 1
126
        },
127
 
128
                });
129
 
130
 
131
 
132
    </script>