图书馆智能管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
5.6 KiB

5 months ago
  1. <div class="modal" ng-controller="DecisionTableInputConditionEditorCtlr">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <form name="inputExpressionForm">
  5. <div class="modal-header"><h2>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.INPUT-TITLE' |
  6. translate}}</h2>
  7. <p>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.INPUT-DESCRIPTION' | translate}}</p>
  8. </div>
  9. <div class="modal-body">
  10. <div class="clearfix form-group"
  11. ng-class="{'has-error': inputExpressionForm.expressionLabel.$invalid}">
  12. <div class="col-xs-4">
  13. <label>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.EXPRESSION-LABEL' |
  14. translate}}</label>
  15. </div>
  16. <div class="col-xs-8">
  17. <input class="form-control" name="expressionLabel"
  18. placeholder="{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.EXPRESSION-PLACEHOLDER' | translate}}"
  19. type="text" ng-model="popup.selectedExpressionLabel" ng-disabled="model.readOnly"/>
  20. </div>
  21. </div>
  22. <div>
  23. <div>
  24. <div class="clearfix form-group"
  25. ng-class="{'has-error': inputExpressionForm.variableId.$invalid}">
  26. <div class="col-xs-4">
  27. <label>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.EXPRESSION-VARIABLE-NAME' |
  28. translate}}</label><span class="marker">*</span>
  29. </div>
  30. <div class="col-xs-8">
  31. <input class="form-control"
  32. placeholder="{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.EXPRESSION-VARIABLE-NAME-PLACEHOLDER' | translate}}"
  33. type="text" ng-required="true" name="variableId"
  34. ng-model="popup.selectedExpressionVariableId" ng-disabled="model.readOnly"/>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <div class="clearfix form-group"
  40. ng-class="{'has-error': inputExpressionForm.variableType.$invalid}">
  41. <div class="col-xs-4">
  42. <label>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.EXPRESSION-VARIABLE-TYPE' |
  43. translate}}</label><span class="marker">*</span>
  44. </div>
  45. <div class="col-xs-8">
  46. <select class="form-control" ng-options="type for type in model.availableInputVariableTypes"
  47. ng-model="popup.selectedExpressionVariableType" name="variableType"
  48. ng-required="true" ng-disabled="model.readOnly"/>
  49. </div>
  50. </div>
  51. <div ng-if="popup.selectedExpressionVariableType != 'collection'">
  52. <div class="clearfix form-group">
  53. <div class="col-xs-4">
  54. <label>{{'DECISION-TABLE-EDITOR.POPUP.EXPRESSION-EDITOR.ALLOWED-VALUES' |
  55. translate}}</label>
  56. </div>
  57. <div ng-if="!model.readOnly" class="col-xs-8">
  58. <hot-table hot-auto-destroy
  59. hot-id="decision-table-allowed-values"
  60. settings="popup.hotSettings"
  61. datarows="popup.selectedExpressionInputValues"
  62. columns="popup.columnDefs"
  63. row-heights="30"
  64. class-name="'htMiddle'"
  65. min-spare-rows="1"
  66. read-only="model.readOnly">
  67. </hot-table>
  68. </div>
  69. <div ng-if="model.readOnly" class="col-xs-8">
  70. <div ng-repeat="allowedValue in popup.selectedExpressionInputValues"><span style="font-size: 14px">{{allowedValue[0]}}</span><br></div>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="modal-footer">
  76. <div class="pull-right">
  77. <button type="button" class="btn btn-sm btn-default" ng-click="cancel()">
  78. {{'GENERAL.ACTION.CANCEL' | translate}}
  79. </button>
  80. <button ng-if="!model.readOnly" type="button" class="btn btn-sm btn-default" ng-click="save()"
  81. ng-disabled="!inputExpressionForm.$valid">
  82. {{'GENERAL.ACTION.SAVE' | translate}}
  83. </button>
  84. </div>
  85. <div class="loading pull-right" ng-show="model.loading">
  86. <div class="l1"></div>
  87. <div class="l2"></div>
  88. <div class="l2"></div>
  89. </div>
  90. </div>
  91. </form>
  92. </div>
  93. </div>
  94. </div>