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.

pkguidsedit.html 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div layout="column" ng-cloak class="md-inline-form" angular-busy="appUtils.cgBusy(itemType + '.edit')">
  2. <md-toolbar class="md-table-toolbar md-default" >
  3. <div class="md-toolbar-tools">
  4. <md-button ng-show="!isModal" class="md-icon-button" ng-click="cancel()" title="{{ 'common.back' | translate }}">
  5. <md-icon class="material-icons">arrow_back</md-icon>
  6. </md-button>
  7. <span>{{ isModal ? title : (itemType + '.name' | translate:{count:selected.length}) }}</span>
  8. <span class="has-changed-warning" ng-show="hasChanged()">
  9. <md-icon title="{{ 'common.unsavedChanged' | translate }}" class="material-icons">warning</md-icon>
  10. </span>
  11. <span flex></span>
  12. <md-button class="md-icon-button" ng-show="item.id != null && !isModal" ng-click="askRemoveOne(item)" title="{{ 'common.delete' | translate }}">
  13. <md-icon class="material-icons">delete</md-icon>
  14. </md-button>
  15. </div>
  16. </md-toolbar>
  17. <md-content layout-padding>
  18. <form name="editForm">
  19. <div layout-gt-sm="row">
  20. <md-input-container class="md-block" flex-gt-sm>
  21. <label>{{ itemType + '.someText' | translate }}</label>
  22. <input required ng-model="item.someText">
  23. </md-input-container>
  24. <md-input-container class="md-block" flex-gt-sm>
  25. <label>{{ itemType + '.someInt' | translate }}</label>
  26. <input required type="number" ng-model="item.someInt">
  27. </md-input-container>
  28. </div>
  29. <div flex>
  30. <md-progress-linear ng-disabled="!running" md-mode="indeterminate"></md-progress-linear>
  31. </div>
  32. <div flex layout-gt-sm="row" layout-align=" center">
  33. <div layout="column">
  34. <span class="md-caption" ng-show="item.createdAt != null">{{ 'common.createdAt' | translate }} {{ item.createdAt | formatDateTime }}</span>
  35. <span class="md-caption" ng-show="item.updatedAt != null">{{ 'common.updatedAt' | translate }} {{ item.updatedAt | formatDateTime }}</span>
  36. </div>
  37. <span flex></span>
  38. <div>
  39. <md-button ng-show="isModal" class="md-raised" type="button" ng-click="cancel()">{{ 'common.cancel' | translate }}</md-button>
  40. <md-button class="md-raised md-primary" type="submit" ng-click="!editForm.$invalid && submit()">{{ 'common.save' | translate }}</md-button>
  41. </div>
  42. </div>
  43. <div ng-repeat="error in busy.errors(itemType + '.edit')" class="isa_error">
  44. <i class="fa fa-times-circle"></i>
  45. {{ error.data.message }}
  46. </div>
  47. </form>
  48. </md-content>
  49. </div>