BusinessMetadataAttributeItemView_tmpl.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. -->
  17. <div id="{{modalID}}" class="form-group clearfix business-metadata-attr">
  18. <div class="form-group">
  19. <div class="col-sm-12 attributePlusData " align="right">
  20. <button type="button" class="btn btn-danger btn-sm closeInput" data-id="close"><i class="fa fa-times"></i></button>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="control-label col-sm-3 required" for="name">属性名</label>
  25. <div class="col-sm-8">
  26. <input class="form-control attributeInput require" data-id="attributeInput" placeholder="Attribute name">
  27. </input>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <label class="control-label col-sm-3 required" for="type">类型</label>
  32. <div class="col-sm-8">
  33. <select class="form-control dataTypeSelector" data-id="dataTypeSelector">
  34. <option selected="selected">string</option>
  35. <option>boolean</option>
  36. <option>byte</option>
  37. <option>short</option>
  38. <option>int</option>
  39. <option>float</option>
  40. <option>double</option>
  41. <option>long</option>
  42. <option>date</option>
  43. <option>enumeration</option>
  44. </select>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="control-label col-sm-3 required" for="type">搜索权重</label>
  49. <div class="col-sm-6">
  50. <select class="form-control searchWeightSelector" data-id="searchWeightSelector">
  51. <option>0</option>
  52. <option>1</option>
  53. <option>2</option>
  54. <option>3</option>
  55. <option>4</option>
  56. <option selected="selected">5</option>
  57. <option>6</option>
  58. <option>7</option>
  59. <option>8</option>
  60. <option>9</option>
  61. <option>10</option>
  62. </select>
  63. </div>
  64. <label class="control-label">
  65. <i class="fa fa-question-circle help-btn" title="<div><span><i class='fa fa-arrow-up'></i> the search weight for the attribute,<i class='fa fa-arrow-up'></i> the entity in the topmost search results when searched for by that attribute</span><h6><u>Applicable Ranges</u></h6><ul style='padding:0px'><li>Quick search: <b>0 - 10</b></li><li>Suggestion: <b>8 - 10</b></li></ul></div>" data-html="true"></i>
  66. </label>
  67. </div>
  68. <div class="form-group" data-id="multiValueSelect">
  69. <label class="control-label col-sm-3" for="multiValSelect">多值</label>
  70. <div class="col-sm-8">
  71. <input type="checkbox" class="form-check-input multi-value-select" data-id="multiValueSelectStatus">
  72. </div>
  73. </div>
  74. <div class="form-group enumtype-container" data-id="enumTypeSelectorContainer">
  75. <div class="">
  76. <label class="control-label col-sm-3 required" for="enumType">枚举名称</label>
  77. <div class="col-sm-5">
  78. <select class="form-control enumTypeSelector require" data-id="enumTypeSelector" multiple="false">
  79. </select>
  80. </div>
  81. <div class="col-sm-3">
  82. <button type="button" class="btn btn-action btn-sm" data-id="createNewEnum" data-action="" title="Create/Update Enum"> <i class="fa fa-pencil"></i> 枚举</button>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="form-group enumvalue-container" data-id="enumValueSelectorContainer">
  87. <div class="">
  88. <label class="control-label col-sm-3 required" for="enumVal">枚举值</label>
  89. <div class="col-sm-8">
  90. <select class="form-control enumValueSelector" data-id="enumValueSelector" multiple="true">
  91. </select>
  92. </div>
  93. </div>
  94. </div>
  95. <div class="form-group" data-id="stringLengthContainer">
  96. <div class="stringlength-container">
  97. <label class="control-label col-sm-3 required" for="name">最大长度</label>
  98. <div class="col-sm-8">
  99. <input type="number" class="form-control stringLengthVal require" data-id="stringLength" placeholder="Maximum length">
  100. </div>
  101. </div>
  102. </div>
  103. <div class="form-group entity-businessMetadata-selector">
  104. <label class="control-label col-sm-3" for="name">适用类型</label>
  105. <div class="col-sm-8">
  106. <select class="form-control entityTypeSelector" data-id="entityTypeSelector" multiple="multiple">
  107. </select>
  108. </div>
  109. </div>
  110. </div>