tmgmt-data-items-form.html.twig

Default theme implementation for the review form.

Available variables:

  • element: The form element.
  • ajaxid: Ajax ID for the replacement wrapper.
  • top_label: Label for the top-level label.

File

templates/tmgmt-data-items-form.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for the review form.
  5. *
  6. * Available variables:
  7. * - element: The form element.
  8. * - ajaxid: Ajax ID for the replacement wrapper.
  9. * - top_label: Label for the top-level label.
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <div id="{{ ajaxid }}">
  15. <table class="tmgmt-ui-review">
  16. <colgroup width="100"/>
  17. <colgroup width="*" span="2"/>
  18. <colgroup width="100"/>
  19. <thead>
  20. <tr>
  21. <th colspan="4">{{ top_label }}</th>
  22. </tr>
  23. </thead>
  24. {% for group_key, group in element %}
  25. {% if group_key|first != '#' %}
  26. <tbody>
  27. {% if group['#group_label'] %}
  28. <tr>
  29. <th colspan="4">{{ group['#group_label']|join(' > ') }}</th>
  30. </tr>
  31. {% endif %}
  32. {% for key, item in group %}
  33. {% if key|first != '#' %}
  34. <tr>
  35. <td class="tmgmt-ui-data-item-label">
  36. <div class="form-item form-type-label">
  37. <label>{{ item.label }}</label>
  38. </div>
  39. <div class="tmgmt-ui-state">
  40. {{ item.status }}
  41. </div>
  42. </td>
  43. <td class="tmgmt-ui-data-item-source">
  44. {{ item.source }}
  45. </td>
  46. <td class="tmgmt-ui-data-item-translation">
  47. {{ item.translation }}
  48. </td>
  49. <td class="tmgmt-ui-data-item-actions">
  50. {{ item.actions }}
  51. </td>
  52. </tr>
  53. {% if item.below %}
  54. <tr>
  55. <td></td>
  56. <td colspan="2"> {{ item.below }}</td>
  57. <td>{{ item.below_actions }}</td>
  58. </tr>
  59. {% endif %}
  60. {% endif %}
  61. {% endfor %}
  62. </tbody>
  63. {% endif %}
  64. {% endfor %}
  65. </table>
  66. </div>