You are here

patterns-meta-information.html.twig in UI Patterns 8

UI Pattern meta information.

File

modules/ui_patterns_library/templates/patterns-meta-information.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * UI Pattern meta information.
  5. */
  6. #}
  7. {% if pattern is not empty %}
  8. {# Pattern name and desciption. #}
  9. <h3 class="pattern-preview__label">{{ pattern.label }}</h3>
  10. <p class="pattern-preview__description">{{ pattern.description }}</p>
  11. {# Pattern fields descriptions. #}
  12. <table class="pattern-preview__fields">
  13. <thead>
  14. <tr>
  15. <th>{{ "Field"|t }}</th>
  16. <th>{{ "Label"|t }}</th>
  17. <th>{{ "Type"|t }}</th>
  18. <th>{{ "Description"|t }}</th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. {% for field in pattern.fields %}
  23. <tr>
  24. <td><code>{{ field.name }}</code></td>
  25. <td>{{ field.label }}</td>
  26. <td><code>{{ field.type }}</code></td>
  27. <td>{{ field.description }}</td>
  28. </tr>
  29. {% endfor %}
  30. </tbody>
  31. </table>
  32. {% endif %}