You are here

fa_form.html.twig in FormAssembly 8

fa_form.html.twig Default theme implementation to present FormAssembly Form data.

This template is used when viewing FormAssembly Form pages.

Available variables:

  • content: A list of content items. Use 'content' to print all content, or
  • attributes: HTML attributes for the container element.

@author Shawn P. Duncan <code@sd.shawnduncan.org> @date 4/29/17, 11:25 AM

Copyright 2017 by Shawn P. Duncan. This code is released under the GNU General Public License. Which means that it is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. http://www.gnu.org/licenses/gpl.html

See also

template_preprocess_fa_form()

File

templates/fa_form.html.twig
View source
  1. {#
  2. /**
  3. * @file fa_form.html.twig
  4. * Default theme implementation to present FormAssembly Form data.
  5. *
  6. * This template is used when viewing FormAssembly Form pages.
  7. *
  8. *
  9. * Available variables:
  10. * - content: A list of content items. Use 'content' to print all content, or
  11. * - attributes: HTML attributes for the container element.
  12. *
  13. * @see template_preprocess_fa_form()
  14. *
  15. * @ingroup themeable
  16. *
  17. * @author Shawn P. Duncan <code@sd.shawnduncan.org>
  18. * @date 4/29/17, 11:25 AM
  19. *
  20. * Copyright 2017 by Shawn P. Duncan. This code is
  21. * released under the GNU General Public License.
  22. * Which means that it is free software; you can redistribute it and/or modify
  23. * it under the terms of the GNU General Public License as published by
  24. * the Free Software Foundation; either version 2 of the License, or (at
  25. * your option) any later version.
  26. * http://www.gnu.org/licenses/gpl.html
  27. */
  28. #}
  29. <div{{ attributes.addClass('fa_form') }}>
  30. {% if content %}
  31. {{- content -}}
  32. {% endif %}
  33. </div>