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.1KB

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