form-properties-popup.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 class="form-group" ng-show="selectedProperties[0].enumValues">
  48. <label for="valueField">{{'PROPERTY.FORMPROPERTIES.VALUES' | translate}}</label>
  49. <div ng-repeat="enum in selectedProperties[0].enumValues">
  50. <input id="valueField" class="form-control" type="text" ng-model="enum.value" />
  51. <i class="glyphicon glyphicon-minus clickable-property" ng-click="removeEnumValue($index)"></i>
  52. <i ng-if="$index == (selectedProperties[0].enumValues.length - 1)" class="glyphicon glyphicon-plus clickable-property" ng-click="addEnumValue($index)"></i>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label for="expressionField">{{'PROPERTY.FORMPROPERTIES.EXPRESSION' | translate}}</label>
  57. <input id="expressionField" class="form-control" type="text" ng-model="selectedProperties[0].expression" placeholder="{{'PROPERTY.FORMPROPERTIES.EXPRESSION.PLACEHOLDER' | translate }}" />
  58. </div>
  59. <div class="form-group">
  60. <label for="variableField">{{'PROPERTY.FORMPROPERTIES.VARIABLE' | translate}}</label>
  61. <input id="variableField" class="form-control" type="text" ng-model="selectedProperties[0].variable" placeholder="{{'PROPERTY.FORMPROPERTIES.VARIABLE.PLACEHOLDER' | translate }}" />
  62. </div>
  63. <div class="form-inline">
  64. <div class="form-group col-xs-2" >
  65. <label for="requiredField">{{'PROPERTY.FORMPROPERTIES.REQUIRED' | translate}}</label>
  66. <input id="requiredField" class="form-control" type="checkbox" ng-model="selectedProperties[0].required" />
  67. </div>
  68. <div class="form-group col-xs-2">
  69. <label for="readableField">{{'PROPERTY.FORMPROPERTIES.READABLE' | translate}}</label>
  70. <input id="readableField" class="form-control" type="checkbox" ng-model="selectedProperties[0].readable" />
  71. </div>
  72. <div class="form-group col-xs-2">
  73. <label for="writableField">{{'PROPERTY.FORMPROPERTIES.WRITABLE' | translate}}</label>
  74. <input id="writableField" class="form-control" type="checkbox" ng-model="selectedProperties[0].writable" />
  75. </div>
  76. </div>
  77. </div>
  78. <div ng-show="selectedProperties.length == 0" class="muted no-property-selected" translate>PROPERTY.FORMPROPERTIES.EMPTY</div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="modal-footer">
  83. <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
  84. <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
  85. </div>
  86. </div>
  87. </div>
  88. </div>