Last active
March 27, 2017 16:13
-
-
Save itswadesh/f782aa66986cc4cc9b4bca5f5b693f12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h4 class="blog-post-title">Products</h4> | |
<hr/> | |
<button type="button" class="btn btn-danger fa fa-plus" ng-click="open(product);"> Add New Product</button> | |
<div class="table-responsive"> | |
<div class="panel panel-primary"> | |
<div class="panel-heading">List of products | |
<div class="sw-search" > | |
<div class="nav-search" id="nav-search"> | |
Filter: <span class="input-icon"> | |
<input placeholder="Filter products list ..." class="nav-search-input" ng-model="filterProduct" ng-change="resetLimit();" autocomplete="off" type="text" style="width:300px;" focus> | |
<i class="search-icon fa fa-search nav-search-icon"></i> | |
</span> | |
</div> | |
</div> | |
</div> | |
<div class="panel-body"> | |
<table class="table table-striped"> | |
<tr ng-show="products.length==0"><td style="vertical-align:middle;"><i class="fa fa-ban fa-3x"></i> No data found</td></tr> | |
<tr ng-hide="products.length>-1"><td style="vertical-align:middle;"><i class="fa fa-cog fa-3x fa-spin"></i> Loading</td></tr> | |
<tr><th ng-repeat="c in columns">{{c.text}}</th></tr> | |
<tr ng-repeat="c in products | filter:filterProduct | orderBy:'-id'" id="{{c.id}}" animate-on-change='c.packing + c.stock + c.price + c.description' ng-animate=" 'animate'"> | |
<td>{{c.id}}</td><td>{{c.name}}</td><td>{{c.price}}</td><td>{{c.stock}}</td><td>{{c.packing}}</td><td>{{c.description}}</td> | |
<td> | |
<button class="btn" ng-class="{Active:'btn-success', Inactive:''}[c.status]" ng-click="changeProductStatus(c);">{{c.status}}</button> | |
</td> | |
<td style="width:100px"> | |
<div class="btn-group"> | |
<button type="button" class="btn btn-default fa fa-edit" ng-click="open(c);"></button> | |
<button type="button" class="btn btn-danger fa fa-trash-o" ng-click="deleteProduct(c);"></button> | |
</div> | |
</td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment