Matteo Scandolo | 775d324 | 2016-03-24 16:12:18 -0700 | [diff] [blame] | 1 | <xos-table data="vm.contentProviderList" config="vm.config"/> |
Matteo Scandolo | 91fe03d | 2016-03-24 15:29:52 -0700 | [diff] [blame] | 2 | |
Matteo Scandolo | 15d692c | 2015-10-28 12:00:07 +0100 | [diff] [blame] | 3 | <table class="table table-striped" ng-show="vm.contentProviderList.length > 0"> |
| 4 | <thead> |
| 5 | <tr> |
| 6 | <th> |
| 7 | Name |
| 8 | </th> |
| 9 | <th>Description</th> |
| 10 | <th>Status</th> |
| 11 | <th></th> |
| 12 | </tr> |
| 13 | </thead> |
| 14 | <tr ng-repeat="item in vm.contentProviderList"> |
| 15 | <td> |
Matteo Scandolo | 7db0843 | 2015-11-06 18:49:33 +0100 | [diff] [blame] | 16 | <a ui-sref="details({ id: item.id })">{$ item.humanReadableName $}</a> |
Matteo Scandolo | 15d692c | 2015-10-28 12:00:07 +0100 | [diff] [blame] | 17 | </td> |
| 18 | <td> |
| 19 | {$ item.description $} |
| 20 | </td> |
| 21 | <td> |
| 22 | {$ item.enabled $} |
| 23 | </td> |
| 24 | <td class="text-right"> |
| 25 | <a ng-click="vm.deleteCp(item.id)" class="btn btn-danger"><i class="icon icon-remove"></i></a></td> |
| 26 | </tr> |
| 27 | </table> |
| 28 | <div class="alert alert-error" ng-show="vm.contentProviderList.length == 0"> |
| 29 | No Content Provider defined |
| 30 | </div> |
| 31 | |
| 32 | <div class="row"> |
| 33 | <div class="span12 text-right"> |
| 34 | <a class="btn btn-success"href="#/contentProvider/">Create</a> |
| 35 | </div> |
| 36 | </div> |