entity.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <table class="entity-table">
  2. <tr>
  3. <th>EID</th>
  4. <th>Name</th>
  5. <th>Entity Type</th>
  6. <th></th>
  7. <th></th>
  8. </tr>
  9. {{#each this}}
  10. <tr class="entity-header" eid={{eid}}>
  11. <td>{{eid}}</td>
  12. <td>{{name}}</td>
  13. <td>{{type}}</td>
  14. <td>
  15. <button action="delete">Delete</button>
  16. </td>
  17. <td>
  18. <button action="fetch-components" style="display: inline-block; text-align: right;">Edit</button>
  19. <span class="fetch_status" style="text-align: right;"></span>
  20. </td>
  21. </tr>
  22. <tr class="entity-details" eid={{eid}} style="display:none;">
  23. <td colspan="5">
  24. <div class="components">
  25. {{#each components}}
  26. {{#equals @key 'eid'}}
  27. {{else}}
  28. <div class="component">
  29. <div>{{@key}} {{this}}<input class="valedit" eid="{{../eid}}" name="{{@key}}" type="edit" value="{{this}}" /></div>
  30. </div>
  31. {{/equals}}
  32. {{/each}}
  33. </div>
  34. <button action="add-component">+</button>
  35. <br/>
  36. <button action="save" style="display:none;">Save</button><span class="save_status"></span>
  37. </td>
  38. </tr>
  39. {{else}}
  40. <tr colspan="5"><td> No Results </td></tr>
  41. {{/each}}
  42. </table>