editor.html 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <div ng-controller="StencilController">
  2. <div class="subheader editor-toolbar" id="editor-header">
  3. <div class="btn-group">
  4. <div class="btn-toolbar pull-left" ng-controller="ToolbarController" ng-cloak>
  5. <button id="{{item.id}}"
  6. title="{{item.title | translate}}"
  7. ng-repeat="item in items"
  8. ng-switch on="item.type"
  9. class="btn btn-inverse" ng-class="{'separator': item.type == 'separator'}"
  10. ng-disabled="item.type == 'separator' || item.enabled == false"
  11. ng-click="toolbarButtonClicked($index)">
  12. <i ng-switch-when="button" ng-class="item.cssClass" class="toolbar-button" data-toggle="tooltip" title="{{item.title | translate}}"></i>
  13. <div ng-switch-when="separator" ng-class="item.cssClass"></div>
  14. </button>
  15. </div>
  16. </div>
  17. <div class="btn-group pull-right" ng-show="!secondaryItems.length">
  18. <div class="btn-toolbar pull-right" ng-controller="ToolbarController">
  19. <button title="{{item.title | translate}}" ng-repeat="item in secondaryItems" ng-switch on="item.type" class="btn btn-inverse" ng-class="{'separator': item.type == 'separator'}"
  20. ng-disabled="item.type == 'separator'" ng-click="toolbarSecondaryButtonClicked($index)" id="{{item.id}}">
  21. <i ng-switch-when="button" ng-class="item.cssClass" class="toolbar-button" data-toggle="tooltip" title="{{item.title | translate}}"></i>
  22. <div ng-switch-when="separator" ng-class="item.cssClass"></div>
  23. </button>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="full">
  28. <div class="row row-no-gutter">
  29. <div id="paletteHelpWrapper" class="col-xs-2">
  30. <div class="stencils" id="paletteSection">
  31. <div ng-if="stencilItemGroups.length > 1">
  32. <div ng-repeat="group in stencilItemGroups">
  33. <ul ng-if="group.visible && group.items" class="stencil-group" ng-class="{collapsed: !group.expanded, 'first': $first}">
  34. <li ng-include="'editor-app/partials/stencil-item-template.html?version=4'"></li>
  35. </ul>
  36. <div ng-if="!group.items" ng-include="'editor-app/partials/root-stencil-item-template.html?version=4'"></div>
  37. </div>
  38. </div>
  39. <div ng-if="stencilItemGroups.length == 1">
  40. <ul class="stencil-group">
  41. <li ng-repeat="item in stencilItemGroups[0].paletteItems" class="stencil-item"
  42. id="{{item.id}}"
  43. title="{{item.description}}"
  44. ng-model="draggedElement"
  45. data-drag="true"
  46. jqyoui-draggable="{onStart:'startDragCallback', onDrag:'dragCallback'}"
  47. data-jqyoui-options="{revert: 'invalid', helper: 'clone', opacity : 0.5}">
  48. <img ng-src="editor-app/stencilsets/bpmn2.0/icons/{{item.icon}}" width="18px;" height="18px;"/>
  49. <span>{{item.name}}</span>
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. </div>
  55. <div id="canvasHelpWrapper" class="col-xs-10">
  56. <div class="canvas-wrapper" id="canvasSection"
  57. ng-model="droppedElement"
  58. ng-model="droppedElement"
  59. data-drop="true"
  60. data-jqyoui-options
  61. jqyoui-droppable="{onDrop:'dropCallback',onOver: 'overCallback', onOut: 'outCallback'}">
  62. <div class="canvas-message" id="model-modified-date"></div>
  63. <div class="Oryx_button"
  64. id="delete-button"
  65. title="{{'BUTTON.ACTION.DELETE.TOOLTIP' | translate}}"
  66. ng-click="deleteShape()"
  67. style="display:none">
  68. <img src="editor-app/images/delete.png"/>
  69. </div>
  70. <div class="Oryx_button"
  71. id="morph-button"
  72. title="{{'BUTTON.ACTION.MORPH.TOOLTIP' | translate}}"
  73. ng-click="morphShape()"
  74. style="display:none">
  75. <img src="editor-app/images/wrench.png"/>
  76. </div>
  77. <div class="Oryx_button"
  78. ng-repeat="item in quickMenuItems"
  79. id="{{item.id}}"
  80. title="{{item.description}}"
  81. ng-click="quickAddItem(item.id)"
  82. ng-model="draggedElement"
  83. data-drag="true"
  84. jqyoui-draggable="{onStart:'startDragCallbackQuickMenu', onDrag:'dragCallbackQuickMenu'}"
  85. data-jqyoui-options="{revert: 'invalid', helper: 'clone', opacity : 0.5}"
  86. style="display:none">
  87. <img ng-src="editor-app/stencilsets/bpmn2.0/icons/{{item.icon}}"/>
  88. </div>
  89. </div>
  90. </div>
  91. <div id="propertiesHelpWrapper" class="col-xs-10">
  92. <div class="propertySection" id="propertySection"
  93. ng-class="{collapsed: propertyWindowState.collapsed}">
  94. <div class="selected-item-section">
  95. <div class="clearfix">
  96. <div class="pull-right" ng-if="selectedItem.auditData.createDate">
  97. <strong>{{'ELEMENT.DATE_CREATED' | translate}}: </strong> {{selectedItem.auditData.createDate}}
  98. </div>
  99. <div class="pull-right" ng-if="selectedItem.auditData.author">
  100. <strong>{{'ELEMENT.AUTHOR' | translate}}: </strong> {{selectedItem.auditData.author}}
  101. </div>
  102. <div class="selected-item-title">
  103. <a ng-click="propertyWindowState.toggle()">
  104. <i class="glyphicon" ng-class="{'glyphicon-chevron-right': propertyWindowState.collapsed, 'glyphicon-chevron-down': !propertyWindowState.collapsed}"></i>
  105. <span ng-show="selectedItem.title != undefined && selectedItem.title != null && selectedItem.title.length > 0">{{selectedItem.title}}</span>
  106. <span ng-show="!selectedItem || selectedItem.title == undefined || selectedItem.title == null || selectedItem.title.length == 0">{{modelData.name}}</span>
  107. </a>
  108. </div>
  109. </div>
  110. <div class="selected-item-body">
  111. <div>
  112. <div class="property-row" ng-repeat="property in selectedItem.properties"
  113. ng-click="propertyClicked($index)" ng-class="{'clear' : $index%2 == 0}">
  114. <span class="title" ng-if="!property.hidden">{{ property.title }}&nbsp;:</span>
  115. <span class="title-removed" ng-if="property.hidden"><i>{{ property.title }}&nbsp;({{'PROPERTY.REMOVED' | translate}})&nbsp;:</i></span>
  116. <span class="value">
  117. <ng-include
  118. src="getPropertyTemplateUrl($index)" ng-if="!property.hasReadWriteMode"></ng-include>
  119. <ng-include src="getPropertyReadModeTemplateUrl($index)"
  120. ng-if="property.hasReadWriteMode && property.mode == 'read'"></ng-include>
  121. <ng-include src="getPropertyWriteModeTemplateUrl($index)"
  122. ng-if="property.hasReadWriteMode && property.mode == 'write'"></ng-include>
  123. </span>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. </div>