form-properties-popup.html 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <div class="modal" ng-controller="KisBpmFormPropertiesPopupCtrl">
  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>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}</h2>
  7. </div>
  8. <div class="modal-body">
  9. <div class="row row-no-gutter">
  10. <div class="col-xs-6">
  11. <div ng-if="translationsRetrieved" class="default-grid" ng-grid="gridOptions"></div>
  12. <div class="pull-right">
  13. <div class="btn-group">
  14. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.MOVE.UP' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="movePropertyUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
  15. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.MOVE.DOWN' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="movePropertyDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
  16. </div>
  17. <div class="btn-group">
  18. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.ADD' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewProperty()"><i class="glyphicon glyphicon-plus"></i></a>
  19. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.REMOVE' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeProperty()"><i class="glyphicon glyphicon-minus"></i></a>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="col-xs-6">
  24. <div ng-show="selectedProperties.length > 0">
  25. <div class="form-group">
  26. <label for="idField">{{'PROPERTY.FORMPROPERTIES.ID' | translate}}</label>
  27. <input id="idField" class="form-control" type="text" ng-model="selectedProperties[0].id" placeholder="{{'PROPERTY.FORMPROPERTIES.ID.PLACEHOLDER' | translate }}" />
  28. </div>
  29. <div class="form-group">
  30. <label for="nameField">{{'PROPERTY.FORMPROPERTIES.NAME' | translate}}</label>
  31. <input id="nameField" class="form-control" type="text" ng-model="selectedProperties[0].name" placeholder="{{'PROPERTY.FORMPROPERTIES.NAME.PLACEHOLDER' | translate }}" />
  32. </div>
  33. <div class="form-group">
  34. <label for="typeField">{{'PROPERTY.FORMPROPERTIES.TYPE' | translate}}</label>
  35. <select id="typeField" class="form-control" ng-model="selectedProperties[0].type" ng-change="propertyTypeChanged()">
  36. <option>string</option>
  37. <option>long</option>
  38. <option>boolean</option>
  39. <option>date</option>
  40. <option>enum</option>
  41. </select>
  42. </div>
  43. <div class="form-group" ng-show="selectedProperties[0].datePattern">
  44. <label for="datePatternField">{{'PROPERTY.FORMPROPERTIES.DATEPATTERN' | translate}}</label>
  45. <input id="datePatternField" class="form-control" type="text" ng-model="selectedProperties[0].datePattern" placeholder="{{'PROPERTY.FORMPROPERTIES.DATEPATTERN.PLACEHOLDER' | translate }}" />
  46. </div>
  47. <div ng-if="selectedProperties[0].type == 'enum'" style="padding-bottom:10px">
  48. <div class="row row-no-gutter">
  49. <div class="col-xs-6">
  50. <div ng-if="translationsRetrieved" class="kis-listener-grid" ng-grid="enumGridOptions"></div>
  51. <div class="pull-right">
  52. <div class="btn-group">
  53. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.UP | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveEnumValueUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
  54. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.MOVE.DOWN | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveEnumValueDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
  55. </div>
  56. <div class="btn-group">
  57. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.ADD | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewEnumValue()"><i class="glyphicon glyphicon-plus"></i></a>
  58. <a class="btn btn-icon btn-lg" rel="tooltip" data-title="{{ACTION.REMOVE | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeEnumValue()"><i class="glyphicon glyphicon-minus"></i></a>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="col-xs-6">
  63. <div ng-show="selectedEnumValues.length > 0">
  64. <div class="form-group">
  65. <label for="classField">{{'PROPERTY.FORMPROPERTIES.VALUES.ID' | translate}}</label>
  66. <input type="text" id="classField" class="form-control" ng-model="selectedEnumValues[0].id" placeholder="{{'PROPERTY.FORMPROPERTIES.VALUES.ID.PLACEHOLDER' | translate}}" />
  67. </div>
  68. <div class="form-group">
  69. <label for="classField">{{'PROPERTY.FORMPROPERTIES.VALUES.NAME' | translate}}</label>
  70. <input type="text" id="classField" class="form-control" ng-model="selectedEnumValues[0].name" placeholder="{{'PROPERTY.FORMPROPERTIES.VALUES.NAME.PLACEHOLDER' | translate}}" />
  71. </div>
  72. </div>
  73. <div ng-show="selectedEnumValues.length == 0" class="muted no-property-selected" translate>PROPERTY.FORMPROPERTIES.ENUMVALUES.EMPTY</div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label for="expressionField">{{'PROPERTY.FORMPROPERTIES.EXPRESSION' | translate}}</label>
  79. <input id="expressionField" class="form-control" type="text" ng-model="selectedProperties[0].expression" placeholder="{{'PROPERTY.FORMPROPERTIES.EXPRESSION.PLACEHOLDER' | translate }}" />
  80. </div>
  81. <div class="form-group">
  82. <label for="variableField">{{'PROPERTY.FORMPROPERTIES.VARIABLE' | translate}}</label>
  83. <input id="variableField" class="form-control" type="text" ng-model="selectedProperties[0].variable" placeholder="{{'PROPERTY.FORMPROPERTIES.VARIABLE.PLACEHOLDER' | translate }}" />
  84. </div>
  85. <div class="form-inline">
  86. <div class="form-group col-xs-2" >
  87. <label for="requiredField">{{'PROPERTY.FORMPROPERTIES.REQUIRED' | translate}}</label>
  88. <input id="requiredField" class="form-control" type="checkbox" ng-model="selectedProperties[0].required" />
  89. </div>
  90. <div class="form-group col-xs-2">
  91. <label for="readableField">{{'PROPERTY.FORMPROPERTIES.READABLE' | translate}}</label>
  92. <input id="readableField" class="form-control" type="checkbox" ng-model="selectedProperties[0].readable" />
  93. </div>
  94. <div class="form-group col-xs-2">
  95. <label for="writableField">{{'PROPERTY.FORMPROPERTIES.WRITABLE' | translate}}</label>
  96. <input id="writableField" class="form-control" type="checkbox" ng-model="selectedProperties[0].writable" />
  97. </div>
  98. </div>
  99. </div>
  100. <div ng-show="selectedProperties.length == 0" class="muted no-property-selected" translate>PROPERTY.FORMPROPERTIES.EMPTY</div>
  101. </div>
  102. </div>
  103. </div>
  104. <div class="modal-footer">
  105. <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
  106. <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
  107. </div>
  108. </div>
  109. </div>
  110. </div>