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.

articlesCategory.html 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <div layout="column" layout-fill layout-align="top" angular-busy="appUtils.cgBusy('articleCategory.articleCategory')">
  2. <div flex>
  3. <md-toolbar class="md-table-toolbar md-default">
  4. <div class="md-toolbar-tools">
  5. <md-icon class="material-icons">search</md-icon>
  6. <form autocomplete="off">
  7. <md-input-container class="md-block" flex-gt-sm>
  8. <label>{{ 'common.filter' | translate }}</label>
  9. <input type="text" ng-model="query.filter" ng-model-options="{debounce: 750}" ng-change="load()">
  10. </md-input-container>
  11. </form>
  12. <md-button ng-show="!isModal" class="md-icon-button" ng-click="resetFilter()" title="{{ 'common.close' | translate }}">
  13. <md-icon class="material-icons">close</md-icon>
  14. </md-button>
  15. <md-button class="md-icon-button" ng-click="load()" title="{{ 'common.refresh' | translate }}">
  16. <md-icon class="material-icons">refresh</md-icon>
  17. </md-button>
  18. </div>
  19. </md-toolbar>
  20. </div>
  21. <div layout="row">
  22. <span flex="15"></span>
  23. <md-grid-list class="image-grid" md-cols="6" md-row-height="200px" md-row-height-gt-sm="300px"
  24. md-row-height-gt-md="450px" md-gutter="4px" flex="60">
  25. <md-grid-tile ng-repeat="item in items.data" class="red grid-picture" md-colspan="{{$index < 2 ? 3 : 2}}"
  26. ng-class="{red: itemType == 'persons', purple: itemType == 'countries', blue: itemType == 'locations'}"
  27. md-rowspan="1" ui-sref="articles_view({id: item.id, item: item})">
  28. <img class="article-picture" ng-src="{{item.pictureUrl}}">
  29. <md-grid-tile-footer><h3>{{ item.title }}</h3></md-grid-tile-footer>
  30. </md-grid-tile>
  31. </md-grid-list>
  32. </div>
  33. <md-table-pagination md-label="{{appUtils.mdTableLabels()}}" class="col-xs-11" md-limit="query.limit" md-limit-options="[5, 10, 20]"
  34. md-page="query.page" md-total="{{items.count}}" md-on-paginate="load" md-page-select></md-table-pagination>
  35. <div ng-repeat="error in busy.errors('articleCategory.articleCategory')" class="isa_error">
  36. <i class="fa fa-times-circle"></i>
  37. {{ error.data.message }}
  38. </div>
  39. </div>