subprocess-reference-popup.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <div class="modal" ng-controller="KisBpmCollapsedSubprocessReferencePopupCrtl">
  2. <div class="modal-dialog modal-wide">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;</button>
  6. <h2>
  7. {{'PROPERTY.SUBPROCESSREFERENCE.TITLE' | translate}}
  8. <span ng-show="selectedSubProcess != null"> - {{selectedSubProcess.name}}</span>
  9. <span ng-show="selectedSubProcess == null"> - {{'PROPERTY.SUBPROCESSREFERENCE.EMPTY' | translate}}</span>
  10. </h2>
  11. </div>
  12. <div class="modal-body">
  13. <div class="detail-group clearfix">
  14. <div class="col-xs-12">
  15. <div class="alert alert-error" ng-show="(!state.loadingFolders && !state.loadingSubprocesses) && state.subprocessError" translate>PROPERTY.SUBPROCESSREFERENCE.ERROR.SUBPROCESS</div>
  16. </div>
  17. </div>
  18. <div class="detail-group clearfix">
  19. <div class="col-xs-12 editor-item-picker">
  20. <div ng-if="!state.loadingSubprocesses && !state.subprocessError" class="col-xs-4 editor-item-picker-component" ng-repeat="sub in subProcesses" ng-class="{'selected' : sub.id == selectedSubProcess.id}" ng-click="selectSubProcess(sub, $event)">
  21. <div class="controls">
  22. <input type="checkbox" value="option1" ng-click="selectSubProcess(sub, $event)" ng-checked="sub.id == selectedSubProcess.id" />
  23. </div>
  24. <h4>{{sub.name}}</h4>
  25. <img src="{{config.contextRoot}}/app/rest/models/{{sub.id}}/thumbnail" />
  26. </div>
  27. <div ng-show="state.loadingSubprocesses">
  28. <p class="loading" translate>PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.LOADING</p>
  29. </div>
  30. <div ng-show="!state.loadingSubprocesses && subProcesses.length == 0">
  31. <p translate>PROPERTY.SUBPROCESSREFERENCE.SUBPROCESS.EMPTY</p>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="modal-footer">
  37. <button ng-disabled="state.subprocessError" ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
  38. </div>
  39. </div>
  40. </div>
  41. </div>