Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pkguid.html 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <div layout="column" layout-fill layout-align="top">
  2. <div flex>
  3. <md-toolbar class="md-table-toolbar md-default" ng-show="!isFilterShown && selected.length == 0">
  4. <div class="md-toolbar-tools">
  5. <span>{{ 'pkguid.name' | translate }}</span>
  6. <span flex></span>
  7. <md-button class="md-icon-button" ng-click="showFilter(true)" title="{{ 'common.filter' | translate }}">
  8. <md-icon class="material-icons">filter_list</md-icon>
  9. </md-button>
  10. <md-button class="md-icon-button" ui-sref="pkguid_add" title="{{ 'common.new' | translate }}">
  11. <md-icon class="material-icons">add</md-icon>
  12. </md-button>
  13. <md-button class="md-icon-button" ng-click="getPkGuids()" title="{{ 'common.refresh' | translate }}">
  14. <md-icon class="material-icons">refresh</md-icon>
  15. </md-button>
  16. </div>
  17. </md-toolbar>
  18. <md-toolbar class="md-table-toolbar md-default" ng-show="isFilterShown && selected.length == 0">
  19. <div class="md-toolbar-tools">
  20. <md-icon class="material-icons">search</md-icon>
  21. <form autocomplete="off">
  22. <md-input-container class="md-block" flex-gt-sm>
  23. <label>{{ 'common.filter' | translate }}</label>
  24. <input type="text" ng-model="query.filter" ng-model-options="{debounce: 500}" ng-change="getPkGuids()">
  25. </md-input-container>
  26. </form>
  27. <md-button class="md-icon-button" ng-click="showFilter(false)" title="{{ 'common.close' | translate }}">
  28. <md-icon class="material-icons">close</md-icon>
  29. </md-button>
  30. </div>
  31. </md-toolbar>
  32. <md-toolbar class="md-table-toolbar alternate" ng-show="selected.length > 0">
  33. <div class="md-toolbar-tools">
  34. <span>{{ 'pkguid.selectedItems' | translate:{count:selected.length} }}</span>
  35. <span flex></span>
  36. <md-button class="md-icon-button" ng-click="askRemoveSelected()">
  37. <md-icon class="material-icons">delete</md-icon>
  38. </md-button>
  39. </div>
  40. </md-toolbar>
  41. </div>
  42. <div flex>
  43. <md-table-container>
  44. <table md-table md-row-select multiple ng-model="selected" md-progress="promise">
  45. <thead md-head md-order="query.order" md-on-reorder="getPkGuids">
  46. <tr md-row>
  47. <th md-column md-order-by="id"><span>{{ 'pkguid.id' | translate }}</span></th>
  48. <th md-column md-order-by="someText"><span>{{ 'pkguid.someText' | translate }}</span></th>
  49. <th md-column md-order-by="someInt" md-numeric>{{ 'pkguid.someInt' | translate }}</th>
  50. <th md-column md-order-by="createdAt">{{ 'pkguid.createdAt' | translate }}</th>
  51. <th md-column md-order-by="updatedAt">{{ 'pkguid.updatedAt' | translate }}</th>
  52. <th md-column>{{ 'common.actions' | translate }}</th>
  53. </tr>
  54. </thead>
  55. <tbody md-body>
  56. <tr md-row md-select="item" md-select-id="id" ng-repeat="item in pkGuids.data">
  57. <td md-cell>{{item.id}}</td>
  58. <td md-cell>{{item.someText}}</td>
  59. <td md-cell>{{item.someInt}}</td>
  60. <td md-cell>{{item.createdAt | date : 'medium'}}</td>
  61. <td md-cell>{{item.updatedAt == null ? ('common.never' | translate ) : (item.updatedAt | date : 'medium')}}</td>
  62. <td md-cell>
  63. <md-button class="md-icon-button" ui-sref="pkguid_edit({id: item.id, pkguid: item})" title="{{ 'common.edit' | translate }}">
  64. <md-icon class="material-icons">mode_edit</md-icon>
  65. </md-button>
  66. <md-button class="md-icon-button" ng-click="askRemoveOne(item)" title="{{ 'common.delete' | translate }}">
  67. <md-icon class="material-icons">delete</md-icon>
  68. </md-button>
  69. </td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. </md-table-container>
  74. </div>
  75. <md-table-pagination md-label="{of: '{{ 'common.pagination.of' | translate }}', page: '{{ 'common.pagination.page' | translate }}', rowsPerPage: '{{ 'common.pagination.rowsPerPage' | translate }}'}"
  76. class="col-xs-11" md-limit="query.limit" md-limit-options="[5, 10, 15]"
  77. md-page="query.page" md-total="{{pkGuids.count}}" md-on-paginate="getPkGuids" md-page-select></md-table-pagination>
  78. <div class="isa_error" ng-show="error != null">
  79. <i class="fa fa-times-circle"></i>
  80. {{ error.data.message }}
  81. </div>
  82. </div>