电子档案
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.

44 lines
2.1 KiB

  1. <div class="modal" tabindex="-1" role="dialog">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" ng-click="$hide()">&times;</button>
  6. <h4 class="modal-title" ng-if="model.mode == 'create'">
  7. {{'IDM.FUNCTIONAL-GROUP-MGMT.POPUP.CREATE-TITLE' | translate}}
  8. </h4>
  9. <h4 class="modal-title" ng-if="model.mode == 'edit'">
  10. {{'IDM.FUNCTIONAL-GROUP-MGMT.POPUP.EDIT-TITLE' | translate}}
  11. </h4>
  12. </div>
  13. <div class="modal-body">
  14. <div class="form-group" ng-if="model.mode == 'create'">
  15. <label class="control-label">{{'IDM.FUNCTIONAL-GROUP-MGMT.POPUP.CREATE-ID' | translate}}</label>
  16. <input type="text" class="form-control" ng-model="model.editedGroup.id" auto-focus>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label">{{'IDM.FUNCTIONAL-GROUP-MGMT.POPUP.CREATE-NAME' | translate}}</label>
  20. <input type="text" class="form-control" ng-model="model.editedGroup.name">
  21. </div>
  22. </div>
  23. <div class="modal-footer">
  24. <button type="button" class="btn btn-default" ng-click="$hide()">{{'IDM.GENERAL.ACTION.CANCEL' | translate}}</button>
  25. <button type="button" ng-if="model.mode == 'create'" class="btn btn-primary" ng-disabled="!model.editedGroup.id || !model.editedGroup.name || model.editedGroup.name.length == 0"
  26. ng-click="createGroup(); $hide()">{{'IDM.GENERAL.ACTION.SAVE' | translate}}</button>
  27. <button type="button" ng-if="model.mode == 'edit'" class="btn btn-primary" ng-disabled="!model.editedGroup.id || !model.editedGroup.name || model.editedGroup.name.length == 0"
  28. ng-click="updateGroup(); $hide()">{{'IDM.GENERAL.ACTION.SAVE' | translate}}</button>
  29. </div>
  30. </div>
  31. </div>
  32. </div>