forked from Apress/pro-angularjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtableView.html
More file actions
32 lines (32 loc) · 1.17 KB
/
tableView.html
File metadata and controls
32 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<div class="panel-body">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Category</th>
<th class="text-right">Price</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in data.products">
<td>{{item.name}}</td>
<td>{{item.category}}</td>
<td class="text-right">{{item.price | currency}}</td>
<td class="text-center">
<button class="btn btn-xs btn-primary"
ng-click="deleteProduct(item)">
Delete
</button>
<a href="/edit/{{item.id}}" class="btn btn-xs btn-primary">Edit</a>
<increment item="item" property-name="price" restful="true"
method-name="$save" />
</td>
</tr>
</tbody>
</table>
<div>
<button class="btn btn-primary" ng-click="refreshProducts()">Refresh</button>
<a href="create" class="btn btn-primary">New</a>
</div>
</div>