Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed





        <table class="table table-border table-condensed table-bordered"
                id="brand-region-table" style="width: 100%;">

                <thead class="row">
                                <h3>Region Mapping  Of $brand</h3>
                        <tr>
                                <th>Brand</th>
                                <th>From Warehouse</th>
                                <th>To Warehouse</th>
                                <th>isAccessory</th>
                                <th>Action</th>
                        </tr>

                </thead>

                <tbody>
                 #foreach($brandRegionMapping in $brandRegionMappings)
                        <tr>
                <td>$brandRegionMapping.getBrand()</td>
                                <td>$warehouseMap.get($brandRegionMapping.getFromWarehouseId())</td>
                                <td>$warehouseMap.get($brandRegionMapping.getToWarehouseId())</td>        
                                <td>$brandRegionMapping.isAccessory()</td>     
                                
                                <td><button class="btn btn-primary remove-mapping" data-brand="$brandRegionMapping.getBrand()" 
                                data-fromwarehouse="$brandRegionMapping.getFromWarehouseId()" data-towarehouse="$brandRegionMapping.getToWarehouseId()"
                                 data-isaccessory="$brandRegionMapping.isAccessory()" >Remove</button></td>
                                               
                        </tr>
                        #end 


                </tbody>
        </table>
        
        
<script>   
          var table = $('#brand-region-table').DataTable({
            orderCellsTop: true,
            fixedHeader: true
        });
</script>