Subversion Repositories SmartDukaan

Rev

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

Rev 34163 Rev 34198
Line 1... Line 1...
1
<div class="col-lg-12">
1
<div class="col-lg-12">
2
 
2
 
-
 
3
    <ul class="nav nav-pills">
-
 
4
        #foreach($brand in $brands)
-
 
5
            <li class="#if($foreach.index == 0) in active #end"><a data-toggle="pill" href="#$brand">$brand</a></li>
-
 
6
        #end
-
 
7
 
-
 
8
    </ul>
-
 
9
    <hr style="border-top: 1px solid #000;">
-
 
10
    <div class="tab-content">
-
 
11
        #foreach($brand in $brands)
-
 
12
            <div id="$brand" class="tab-pane fade in #if($foreach.index == 0) in active #end">
3
    <table class="table table-bordered table-condensed" id="hidCatalogAllocationList" style="width:100%">
13
                <table class="table table-bordered table-condensed hidCatalogAllocationList" style="width:100%">
4
        <thead class="row htable" style="background:#F5F5F5;">
14
                    <thead class="row htable" style="background:#F5F5F5;">
5
        <tr style="color:black;">
15
                    <tr style="color:black;">
6
            <th>Catalog Id</th>
16
                        <th>Catalog Id</th>
7
            <th>Model Number</th>
17
                        <th>Model Number</th>
8
            <th>Brand</th>
18
                        <th>Brand</th>
9
            <th>Availability</th>
19
                        <th>Availability</th>
10
            <th>Allocation</th>
20
                        <th>Allocation</th>
11
            <th>Purchase Limit</th>
21
                        <th>Purchase Limit</th>
-
 
22
                        <th>Action</th>
12
        </tr>
23
                    </tr>
13
        </thead>
24
                    </thead>
14
        <tbody>
25
                    <tbody>
-
 
26
                        #if($hidAllocationModelBrandMap.containsKey($brand) && !$hidAllocationModelBrandMap.get($brand).isEmpty())
-
 
27
 
-
 
28
 
15
            #foreach($model in $hidAllocationModels)
29
                            #foreach($model in $hidAllocationModelBrandMap.get($brand))
16
            <tr>
30
                            <tr>
17
                <td> $model.getCatalogId() </td>
31
                                <td> $model.getCatalogId() </td>
18
                <td> $model.getModelNumber() </td>
32
                                <td> $model.getModelNumber() </td>
19
                <td> $model.getBrand() </td>
33
                                <td> $model.getBrand() </td>
20
                <td> $model.getAvailableStock() </td>
34
                                <td> $model.getAvailableStock() </td>
21
                <td> $model.getHidAllocation() </td>
35
                                <td><input value="$model.getHidAllocation()" disabled name="allocation-limit"></td>
22
                <td> $model.getPurchaseLimit() </td>
36
                                <td> $model.getPurchaseLimit() </td>
-
 
37
                                <td>
-
 
38
                                    #if($isAdmin)
-
 
39
                                        <button class="btn btn-sm btn-info generate-allocation-request"
-
 
40
                                                data-catalogid="$model.getCatalogId()">Generate Request
-
 
41
                                        </button>
-
 
42
                                    #else
-
 
43
                                        -
-
 
44
                                    #end
-
 
45
                                </td>
-
 
46
                            </tr>
-
 
47
                            #end
-
 
48
                        #else
-
 
49
                        <tr>
-
 
50
                            <td colspan="7"> No Data Available</td>
-
 
51
                        </tr>
-
 
52
                        #end
-
 
53
                    </tbody>
23
            </tr>
54
                </table>
24
            #end
55
            </div>
25
        </tbody>
56
        #end
26
    </table>
57
    </div>
27
</div>
58
</div>
-
 
59
</div>
28
60