This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/web/modules/contrib/webform/templates/webform-element-base-html.html.twig
2018-11-23 12:29:20 +00:00

22 lines
596 B
Twig

{#
/**
* @file
* Default theme implementation for a webform base element as html.
*
* Available variables:
* - element: The element.
* - title: The label for the element.
* - value: The content for the element.
* - item: The form item used to display the element.
* - options Associative array of options for element.
* - multiline: Flag to determine if value spans multiple lines.
* - email: Flag to determine if element is for an email.
*/
#}
{% if options.email %}
{% if title %}<b>{{ title }}</b><br />{% endif %}{{ value }}<br /><br />
{% else %}
{{ item }}
{% endif %}