TermRelationAttributeTable_tmpl.html 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. <table class="table table-hover table-quickMenu">
  18. <thead>
  19. <tr>
  20. <th>{{#if relationTypeTable}}关联类型{{else}}术语{{/if}}</th>
  21. <th>{{#if relationTypeTable}}已关术语{{else}}属性{{/if}}</th>
  22. {{#if relationTypeTable}}
  23. <th>属性</th>{{/if}}
  24. </tr>
  25. </thead>
  26. <tbody>
  27. {{#if relationTypeTable}} {{#each attributes}}
  28. <tr>
  29. <td>{{@key}}</td>
  30. {{{callmyfunction ../getTerms @key}}}
  31. </tr>
  32. {{/each}} {{else}} {{#if attributeValue}} {{#each attributeValue}}
  33. <tr>
  34. <td>{{this.displayText}}</td>
  35. <td>
  36. <div class="mainAttrTable">
  37. <table class="attriTable">
  38. <thead>
  39. <tr>
  40. <th>属性名</th>
  41. <th>属性值</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. {{#each ../attributes}}
  46. <tr>
  47. <td>{{@key}}</td>
  48. {{#if ../../editMode}}
  49. <td>
  50. <input data-id="attributeUpdate" class="form-control" type="text" data-name="{{@key}}" data-termguid="{{../../this.termGuid}}" " value=" {{lookup ../../this @key ''}} ">
  51. </td>{{else}}
  52. <td>{{lookup ../../this @key "- "}}</td>
  53. {{/if}}
  54. </tr>
  55. {{/each}}
  56. </tbody>
  57. </table>
  58. </div>
  59. </td>
  60. </tr>
  61. {{/each}}{{else}}
  62. <tr class=" empty text-center ">
  63. <td colspan=" 3 "><span>无记录!</span></td>
  64. </tr>{{/if}} {{/if}}
  65. </tbody>
  66. </table>