fields-popup.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div class="modal" ng-controller="KisBpmFieldsPopupCtrl">
  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. <h3>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate:property}}</h3>
  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="kis-listener-grid" ng-grid="gridOptions"></div>
  12. <div class="pull-right">
  13. <div class="btn-group">
  14. <a href="#" class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.MOVE.UP' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveFieldUp()"><i class="glyphicon glyphicon-arrow-up"></i></a>
  15. <a href="#" class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.MOVE.DOWN' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="moveFieldDown()"><i class="glyphicon glyphicon-arrow-down"></i></a>
  16. </div>
  17. <div class="btn-group">
  18. <a href="#" class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.ADD' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="addNewField()"><i class="glyphicon glyphicon-plus"></i></a>
  19. <a href="#" class="btn btn-icon btn-lg" rel="tooltip" data-title="{{'ACTION.REMOVE' | translate}}" data-placement="bottom" data-original-title="" title="" ng-click="removeField()"><i class="glyphicon glyphicon-minus"></i></a>
  20. </div>
  21. </div>
  22. </div>
  23. <div class="col-xs-6">
  24. <div ng-show="selectedFields.length > 0">
  25. <div class="form-group">
  26. <label for="fieldName">{{'PROPERTY.FIELDS.NAME' | translate}}</label>
  27. <input type="text" id="fieldName" class="form-control" ng-model="selectedFields[0].name" placeholder="{{'PROPERTY.FIELDS.NAME.PLACEHOLDER' | translate}}" />
  28. </div>
  29. <div class="form-group">
  30. <label for="fieldStringValue">{{'PROPERTY.FIELDS.STRINGVALUE' | translate}}</label>
  31. <input type="text" id="fieldStringValue" class="form-control" ng-model="selectedFields[0].stringValue" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.FIELDS.STRINGVALUE.PLACEHOLDER' | translate}}" />
  32. </div>
  33. <div class="form-group">
  34. <label for="fieldExpression">{{'PROPERTY.FIELDS.EXPRESSION' | translate}}</label>
  35. <input type="text" id="fieldExpression" class="form-control" ng-model="selectedFields[0].expression" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.FIELDS.EXPRESSION.PLACEHOLDER' | translate}}" />
  36. </div>
  37. <div class="form-group">
  38. <label for="fieldString">{{'PROPERTY.FIELDS.STRING' | translate}}</label>
  39. <textarea type="text" id="fieldString" class="form-control" ng-model="selectedFields[0].string" ng-change="fieldDetailsChanged()" placeholder="{{'PROPERTY.FIELDS.STRING.PLACEHOLDER' | translate}}"></textarea>
  40. </div>
  41. </div>
  42. <div ng-show="selectedFields.length == 0" class="muted no-property-selected" translate>PROPERTY.FIELDS.EMPTY</div>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="modal-footer">
  47. <button ng-click="cancel()" class="btn btn-primary" translate>ACTION.CANCEL</button>
  48. <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
  49. </div>
  50. </div>
  51. </div>
  52. </div>