You are here

webform-example-composite.html.twig in Webform 8.5

Default theme implementation of a webform example composite.

Available variables:

  • content: The webform example composite to be output.

File

modules/webform_example_composite/templates/webform-example-composite.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation of a webform example composite.
  5. *
  6. * Available variables:
  7. * - content: The webform example composite to be output.
  8. * @see template_preprocess_webform_example_composite()
  9. *
  10. * @ingroup themeable
  11. */
  12. #}
  13. {{ attach_library('webform_example_composite/webform_example_composite') }}
  14. {% if flexbox %}
  15. <div class="webform-flexbox">
  16. {% if content.first_name %}
  17. <div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.first_name }}</div></div>
  18. {% endif %}
  19. {% if content.last_name %}
  20. <div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.last_name }}</div></div>
  21. {% endif %}
  22. {% if content.date_of_birth %}
  23. <div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.date_of_birth }}</div></div>
  24. {% endif %}
  25. {% if content.gender %}
  26. <div class="webform-flex webform-flex--1"><div class="webform-flex--container">{{ content.gender }}</div></div>
  27. {% endif %}
  28. </div>
  29. {% else %}
  30. {{ content }}
  31. {% endif %}