EntityUserDefineItemView_tmpl.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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="custom-table">
  18. {{#each items}}
  19. <tr class="custom-tr">
  20. <td class="custom-col-1">
  21. <input placeholder="key" type="text" data-type="key" data-index={{@index}} class="form-control" value={{key}}></input>
  22. <p class="errorMsg"></p>
  23. </td>
  24. <td class="custom-col-0"> : </td>
  25. <td class="custom-col-1">
  26. <textarea placeholder="value" data-type="value" data-index={{@index}} class="form-control" class="form-control">{{value}}</textarea>
  27. <p class="errorMsg"></p>
  28. </td>
  29. <td class="custom-col-2 btn-group">
  30. <button class="btn btn-default btn-sm" title="" data-index={{@index}} data-id="deleteItem">
  31. <i class="fa fa-minus"> </i>
  32. </button>
  33. <button class="btn btn-default btn-sm" title="" data-index={{@index}} data-id="addItem">
  34. <i class="fa fa-plus"> </i>
  35. </button>
  36. </td>
  37. </tr>
  38. {{/each}}
  39. <tr>
  40. <td colspan="4">
  41. <p class="errorMsg" data-id="charSupportMsg"></p>
  42. </td>
  43. </tr>
  44. {{#if allValueRemovedUpdate}}
  45. All properties has been removed. To add a property, click <a href="javascript:void(0)" data-id="addItem">here</a>{{else}}
  46. {{#ifCond items.length "===" 0}}
  47. No properties have been created yet. To add a property, click <a href="javascript:void(0)" data-id="addItem">here</a>
  48. {{/ifCond}}{{/if}}
  49. </table>