You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pkguid.html 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <div layout="column" layout-fill layout-align="top">
  2. <div flex>
  3. <md-toolbar class="md-table-toolbar md-default" ng-show="selected.length == 0">
  4. <div class="md-toolbar-tools">
  5. <span>PkGuids</span>
  6. <span flex></span>
  7. <md-button class="md-icon-button" ui-sref="pkguid_add">
  8. <md-icon class="material-icons">add</md-icon>
  9. </md-button>
  10. <md-button class="md-icon-button" ng-click="getPkGuids()">
  11. <md-icon class="material-icons">refresh</md-icon>
  12. </md-button>
  13. </div>
  14. </md-toolbar>
  15. <md-toolbar class="md-table-toolbar alternate" ng-show="selected.length > 0">
  16. <div class="md-toolbar-tools">
  17. <span>{{selected.length}} {{selected.length > 1 ? 'PkGuids' : 'PkGuid'}} selected</span>
  18. <span flex></span>
  19. <md-button class="md-icon-button" ng-click="askRemoveSelected()">
  20. <md-icon class="material-icons">delete</md-icon>
  21. </md-button>
  22. </div>
  23. </md-toolbar>
  24. </div>
  25. <div flex>
  26. <md-table-container>
  27. <table md-table md-row-select multiple ng-model="selected" md-progress="promise">
  28. <thead md-head md-order="query.order" md-on-reorder="getPkGuids">
  29. <tr md-row>
  30. <th md-column md-order-by="id"><span>Id</span></th>
  31. <th md-column md-order-by="someText"><span>Some Text</span></th>
  32. <th md-column md-order-by="someInt" md-numeric>Some Int</th>
  33. <th md-column md-order-by="createdAt">Created At</th>
  34. <th md-column md-order-by="updatedAt">Updated At</th>
  35. <th md-column>Actions</th>
  36. </tr>
  37. </thead>
  38. <tbody md-body>
  39. <tr md-row md-select="item" md-select-id="id" ng-repeat="item in pkGuids.data">
  40. <td md-cell>{{item.id}}</td>
  41. <td md-cell>{{item.someText}}</td>
  42. <td md-cell>{{item.someInt}}</td>
  43. <td md-cell>{{item.createdAt | date : 'medium'}}</td>
  44. <td md-cell>{{item.updatedAt == null ? 'Never' : item.updatedAt | date : 'medium'}}</td>
  45. <td md-cell>
  46. <md-button class="md-icon-button" ui-sref="pkguid_edit({id: item.id, pkguid: item})">
  47. <md-icon class="material-icons">mode_edit</md-icon>
  48. </md-button>
  49. <md-button class="md-icon-button" ng-click="askRemoveOne(item)">
  50. <md-icon class="material-icons">delete</md-icon>
  51. </md-button>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </md-table-container>
  57. </div>
  58. <md-table-pagination class="col-xs-11" md-limit="query.limit" md-limit-options="[1, 5, 10, 15]" md-page="query.page" md-total="{{pkGuids.count}}" md-on-paginate="getPkGuids" md-page-select></md-table-pagination>
  59. <div class="isa_error" ng-show="error != null">
  60. <i class="fa fa-times-circle"></i>
  61. {{ error.data.message }}
  62. </div>
  63. </div>