Subversion Repositories SmartDukaan

Rev

Rev 33879 | Rev 33885 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33879 Rev 33882
Line 1... Line 1...
1
<div class="modal-body">
1
<div class="modal-body">
2
    <h4 class="modal-title">Upload NOC</h4>
2
    <h4 class="modal-title">Upload NOC</h4>
3
    <table class="table table-bordered" name="requiredNoc" id="requiredNoc">
3
    <table class="table table-bordered" name="requiredNoc" id="requiredNoc">
4
        <thead>
4
        <thead>
5
        <th>Brand</th>
5
        <th>Brand</th>
-
 
6
        <th>Amount</th>
6
        <th>Upload Noc</th>
7
        <th>Upload Noc</th>
7
        <th>NOC From GT</th>
8
        <th>NOC From GT</th>
-
 
9
        <th>Active</th>
8
        </thead>
10
        </thead>
9
        <tbody>
11
        <tbody>
10
            #foreach($nrb in $nocRequiredBrands)
12
            #foreach($lbc in $loiBrandCommitmentList)
11
            <tr>
13
            <tr>
12
                <td align="center">
14
                <td align="center">
13
                    <input type="hidden" value="$nrb.getId()" name="brandId" class="brandId">
15
                    <input type="hidden" value="$lbc.getId()" name="brandId" class="brandId">
14
                    <label style="color: #688a7e ; font-weight: bold;">$nrb.getBrandName()</label>
16
                    <label style="color: #688a7e ; font-weight: bold;">$lbc.getBrandName()</label>
-
 
17
                </td>
-
 
18
                <td align="center">
-
 
19
                    <input type="number" value="$lbc.getAmount()" name="commitAmount" class="commitAmount">
15
                </td>
20
                </td>
16
                <td>
21
                <td>
17
                    <input type="hidden" value="$nrb.getId()" name="brandId" class="brandId">
22
                    <input type="hidden" value="$lbc.getId()" name="brandId" class="brandId">
18
                    <input type="hidden" name="documentId" value="$nocRequiredBrandsMap.get($nrb.getId()).getNoc()"
23
                    <input type="hidden" name="documentId" value="$loiBrandCommitmentMap.get($lbc.getId()).getNoc()"
19
                           class="documentId">
24
                           class="documentId">
20
                    <input type="file" required>
25
                    <input type="file" required>
21
                    #if($nocRequiredBrandsMap.get($nrb.getId()).getNoc()>0)
26
                    #if($loiBrandCommitmentMap.get($lbc.getId()).getNoc()>0)
22
                        <a href="${rc.contextPath}/download-attachment?documentId=$nocRequiredBrandsMap.get($nrb.getId()).getNoc()">Download
27
                        <a href="${rc.contextPath}/download-attachment?documentId=$loiBrandCommitmentMap.get($lbc.getId()).getNoc()">Download
23
                            & View</a>
28
                            & View</a>
24
                    #end
29
                    #end
25
                </td>
30
                </td>
26
                <td align="center">
31
                <td align="center">
27
                    #if($nocRequiredBrandsMap.get($nrb.getId()).getNocGt())
32
                    #if($loiBrandCommitmentMap.get($lbc.getId()).getNocGt())
28
                        <select name="nocRequired" class="noc-required">
33
                        <select name="nocRequired" class="noc-required">
29
                            <option value="$nrb.getNocGt()"
34
                            <option value="$lbc.getNocGt()"
30
                                    selected>$nocRequiredBrandsMap.get($nrb.getId()).getNocGt()</option>
35
                                    selected>$loiBrandCommitmentMap.get($lbc.getId()).getNocGt()</option>
31
                            <option value="RECEIVED">RECEIVED</option>
36
                            <option value="RECEIVED">RECEIVED</option>
32
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
37
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
33
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
38
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
34
                        </select>
39
                        </select>
35
                    #else
40
                    #else
36
                        <select name="nocRequired" class="noc-required">
41
                        <select name="nocRequired" class="noc-required">
37
                            <option value="" selected>NOC GT</option>
42
                            <option value=" " selected>NOC GT</option>
38
                            <option value="RECEIVED">RECEIVED</option>
43
                            <option value="RECEIVED">RECEIVED</option>
39
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
44
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
40
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
45
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
41
                        </select>
46
                        </select>
42
                    #end
47
                    #end
43
 
48
 
44
                </td>
49
                </td>
-
 
50
                <td align="center">
-
 
51
 
-
 
52
                    <select name="nocRequired" class="mk_LoiBrandCommit-isActive">
-
 
53
                        <option value="$loiBrandCommitmentMap.get($lbc.getId()).isActive()"
-
 
54
                                selected>$loiBrandCommitmentMap.get($lbc.getId()).isActive()</option>
-
 
55
                        #if($loiBrandCommitmentMap.get($lbc.getId()).isActive()==true)
-
 
56
                            <option value="false">false</option>
-
 
57
                        #else
-
 
58
                            <option value="true">true</option>
-
 
59
                        #end
-
 
60
                    </select>
-
 
61
 
-
 
62
                </td>
45
            </tr>
63
            </tr>
46
 
64
 
47
            #end
65
            #end
48
        </tbody>
66
        </tbody>
49
    </table>
67
    </table>
50
    <div align="right">
68
    <div align="right">
51
        <button type="button" class="btn-primary uploadNocDoc" value="$nocRequiredBrands.get(0).getLoiId()"
69
        <button type="button" class="btn-primary uploadNocDoc"
52
            ##                data-dismiss="modal"
70
                value="$loiBrandCommitmentList.get(0).getLoiId()">Submit
53
        >Upload All
-
 
54
        </button>
71
        </button>
55
    </div>
72
    </div>
56
</div>
73
</div>
57
 
74