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

22 lines
596 B
Twig
Raw Normal View History

2017-03-16 15:29:07 +00:00
{#
/**
* @file
2018-11-23 12:29:20 +00:00
* Default theme implementation for a webform base element as html.
2017-03-16 15:29:07 +00:00
*
* Available variables:
* - element: The element.
* - title: The label for the element.
* - value: The content for the element.
2018-11-23 12:29:20 +00:00
* - item: The form item used to display the element.
2017-03-16 15:29:07 +00:00
* - 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.
*/
#}
2018-11-23 12:29:20 +00:00
{% if options.email %}
{% if title %}<b>{{ title }}</b><br />{% endif %}{{ value }}<br /><br />
{% else %}
{{ item }}
{% endif %}