Index.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. <label for="urlTitle">URL:</label>
  20. <f:form.textfield name="urlTitle" /><br>
  21. <f:form.submit value="Save" />
  22. </f:form>
  23. <h2>List of terms</h2>
  24. <table>
  25. <thead>
  26. <tr>
  27. <th>ID</th>
  28. <th>Term</th>
  29. <th>Type</th>
  30. <th>Category</th>
  31. <th>Url</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <f:for each="{terms}" as="term">
  36. <tr>
  37. <td>{term.uid}</td>
  38. <td>{term.term}</td>
  39. <td>{term.type.title}</td>
  40. <td>{term.category.title}</td>
  41. <td>{term.url.title}</td>
  42. </tr>
  43. </f:for>
  44. </tbody>
  45. </table>
  46. <h2>List of categories</h2>
  47. <table>
  48. <thead>
  49. <tr>
  50. <th>ID</th>
  51. <th>Title</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <f:for each="{categories}" as="category">
  56. <tr>
  57. <td>{category.uid}</td>
  58. <td>{category.title}</td>
  59. </tr>
  60. </f:for>
  61. </tbody>
  62. </table>
  63. <h2>List of types</h2>
  64. <table>
  65. <thead>
  66. <tr>
  67. <th>ID</th>
  68. <th>Title</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <f:for each="{types}" as="type">
  73. <tr>
  74. <td>{type.uid}</td>
  75. <td>{type.title}</td>
  76. </tr>
  77. </f:for>
  78. </tbody>
  79. </table>
  80. <h2>List of urls</h2>
  81. <table>
  82. <thead>
  83. <tr>
  84. <th>ID</th>
  85. <th>Title</th>
  86. </tr>
  87. </thead>
  88. <tbody>
  89. <f:for each="{urls}" as="url">
  90. <tr>
  91. <td>{url.uid}</td>
  92. <td>{url.title}</td>
  93. </tr>
  94. </f:for>
  95. </tbody>
  96. </table>
  97. </f:section>
  98. </html>