Index.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <html
  2. xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
  3. xmlns:core="http://typo3.org/ns/TYPO3/CMS/Core/ViewHelpers"
  4. xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
  5. data-namespace-typo3-fluid="true">
  6. <f:layout name="Backend" />
  7. <f:section name="List">
  8. <h1>Dashboard</h1>
  9. <h2>Add words (comma-separated) with a category</h2>
  10. <f:flashMessages />
  11. <f:form action="create">
  12. <label for="termList">Terms:</label>
  13. <f:form.textfield name="termList" /><br>
  14. <label for="categoryTitle">Category:</label>
  15. <f:form.textfield name="categoryTitle" /><br>
  16. <!-- <f:form.select name="category" options="{categories}" optionValueField="uid" optionLabelField="title" /><br>-->
  17. <label for="typeTitle">Type:</label>
  18. <f:form.textfield name="typeTitle" /><br>
  19. <f:form.submit value="Save" />
  20. </f:form>
  21. <h2>List of categories</h2>
  22. <table>
  23. <thead>
  24. <tr>
  25. <th>ID</th>
  26. <th>Title</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. <f:for each="{categories}" as="category">
  31. <tr>
  32. <td>{category.uid}</td>
  33. <td>{category.title}</td>
  34. </tr>
  35. </f:for>
  36. </tbody>
  37. </table>
  38. <h2>List of types</h2>
  39. <table>
  40. <thead>
  41. <tr>
  42. <th>ID</th>
  43. <th>Title</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <f:for each="{types}" as="type">
  48. <tr>
  49. <td>{type.uid}</td>
  50. <td>{type.title}</td>
  51. </tr>
  52. </f:for>
  53. </tbody>
  54. </table>
  55. <h2>List of terms</h2>
  56. <table>
  57. <thead>
  58. <tr>
  59. <th>ID</th>
  60. <th>Type</th>
  61. <th>Category</th>
  62. <th>Term</th>
  63. </tr>
  64. </thead>
  65. <tbody>
  66. <f:for each="{terms}" as="term">
  67. <tr>
  68. <td>{term.uid}</td>
  69. <td>{term.type.title}</td>
  70. <td>{term.category.title}</td>
  71. <td>{term.term}</td>
  72. </tr>
  73. </f:for>
  74. </tbody>
  75. </table>
  76. </f:section>
  77. </html>