Subversion Repositories SmartDukaan

Rev

Rev 34163 | Rev 34256 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34163 ranu 1
<div class="col-lg-12">
2
 
34198 ranu 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">
13
                <table class="table table-bordered table-condensed hidCatalogAllocationList" style="width:100%">
14
                    <thead class="row htable" style="background:#F5F5F5;">
15
                    <tr style="color:black;">
16
                        <th>Catalog Id</th>
17
                        <th>Model Number</th>
18
                        <th>Brand</th>
19
                        <th>Availability</th>
20
                        <th>Allocation</th>
21
                        <th>Purchase Limit</th>
22
                        <th>Action</th>
23
                    </tr>
24
                    </thead>
25
                    <tbody>
26
                        #if($hidAllocationModelBrandMap.containsKey($brand) && !$hidAllocationModelBrandMap.get($brand).isEmpty())
27
 
28
 
29
                            #foreach($model in $hidAllocationModelBrandMap.get($brand))
30
                            <tr>
31
                                <td> $model.getCatalogId() </td>
32
                                <td> $model.getModelNumber() </td>
33
                                <td> $model.getBrand() </td>
34
                                <td> $model.getAvailableStock() </td>
35
                                <td><input value="$model.getHidAllocation()" disabled name="allocation-limit"></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>
54
                </table>
55
            </div>
56
        #end
57
    </div>
34163 ranu 58
</div>
34198 ranu 59
</div>