-
Notifications
You must be signed in to change notification settings - Fork 5
/
lists.html
33 lines (27 loc) · 951 Bytes
/
lists.html
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
<h2>{{type}}</h2>
<div class="col-md-6">
<table class="table table-condensed">
<thead>
<tr>
<th>{{type}}</th>
<th ng-repeat="name in names">{{name.columnName}}</th>
</tr>
<tbody>
<tr ng-repeat="instance in instances">
<td>{{instance.value}}</td>
<td ng-repeat="name in names" >{{instance[name.columnName]}}</td>
<td><a href="#/edit/{{instance.id}}"class="btn btn-default btn-sm"><i class="glyphicon glyphicon-pencil"></i></a></td>
</tr>
</tbody>
</table>
<a class="btn btn-primary" href="#/add-inst">Add New {{type}}</a>
<button class="btn btn-success" ng-click="commit(instance)">
Save <span class="glyphicon glyphicon-floppy-disk" />
</button>
<button class="btn btn-warning" ng-click="shift(instance)">
Shift <span class="glyphicon glyphicon-fast-forward" />
</button>
<button class="btn btn-danger" ng-click="clear(instance)">
Cancel <span class="glyphicon glyphicon-trash" />
</button>
</div>