Subversion Repositories SmartDukaan

Rev

Rev 34149 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34149 tejus.loha 1
<style>
2
    .box {
3
        height: 30px;
4
        margin: 5px;
5
        display: block;
6
        text-align: center;
7
        line-height: 30px; /* Center text vertically */
8
        color: black;
9
        float: right;
10
    }
11
 
12
    .light-red {
13
        width: 150px;
14
        background-color: rgba(255, 0, 0, 0.22);
15
    }
16
 
17
    .light-green {
18
        width: 200px;
19
        background-color: rgba(42, 200, 69, 0.25);
20
    }
21
</style>
22
<div>
23
    <h3 align="center">All Commitments</h3>
24
 
25
</div>
26
<div>
27
    <div>
28
        <div class="box light-green">WOD Complete/Not Required</div>
29
        <div class="box light-red">WOD Not Complete</div>
30
    </div>
31
 
32
    <table class="table table-bordered">
33
        <thead>
34
        <tr>
35
            <th>Brand</th>
36
            <th>Amount</th>
37
            <th>Document</th>
38
            <th>Doc status</th>
39
            <th>DMS Code</th>
40
            <th>Commitment Active</th>
41
        </tr>
42
        </thead>
43
        <tbody>
44
            #if(!$partnerBrandCommitmentModels.isEmpty())
45
                #foreach($commitment in $partnerBrandCommitmentModels)
46
                <tr
47
                    #if($commitment.getDmsCode()=="IT_CODE" || $commitment.getDmsCode()==
34168 tejus.loha 48
                        "TEMPCODE"|| $commitment.getDmsCode()=="LOWCODE"||!$commitment.getDmsCode())
34149 tejus.loha 49
                            style="background-color: rgba(255,0,0,0.22)"
50
                    #else
51
                            style="background-color: rgba(42,200,69,0.25)"
52
 
53
                    #end
54
                >
55
                    <td>$commitment.getBrand()</td>
56
                    <td>$commitment.getCommitment()</td>
57
                    <td>$commitment.getNoc()
58
                        #if($commitment.getNoc()>0)
59
                            <a href="${rc.contextPath}/download-attachment?documentId=$commitment.getNoc()"
60
                               class="download">Download
61
                                Doc</a> #end
62
                    </td>
63
                    #if($commitment.getDocStatus())
64
                        <td>$commitment.getDocStatus()</td>
65
                    #else
66
                        <td>NOT_RECEIVED</td>
67
                    #end
68
                    #if($commitment.getDmsCode())
69
                        <td>$commitment.getDmsCode()</td>
70
                    #else
71
                        <td>-</td>
72
                    #end
73
                    #if($commitment.isActive()==true)
74
                        <td>Active</td>
75
                    #else
76
                        <td>Inactive</td>
77
                    #end
78
                </tr>
79
                #end
80
            #end
81
        </tbody>
82
    </table>
83
</div>