Index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. <f:form.submit value="Save" />
  18. </f:form>
  19. <h2>List of categories</h2>
  20. <table>
  21. <thead>
  22. <tr>
  23. <th>ID</th>
  24. <th>Title</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. <f:for each="{categories}" as="category">
  29. <tr>
  30. <td>{category.uid}</td>
  31. <td>{category.title}</td>
  32. </tr>
  33. </f:for>
  34. </tbody>
  35. </table>
  36. <h2>List of terms</h2>
  37. <table>
  38. <thead>
  39. <tr>
  40. <th>ID</th>
  41. <th>Type</th>
  42. <th>Category</th>
  43. <th>Term</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <f:for each="{terms}" as="term">
  48. <tr>
  49. <td>{term.uid}</td>
  50. <td>{term.type}</td>
  51. <td>{term.category.title}</td>
  52. <td>{term.term}</td>
  53. </tr>
  54. </f:for>
  55. </tbody>
  56. </table>
  57. </f:section>
  58. </html>