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-handler-email-summary.html.twig
2017-03-16 15:29:07 +00:00

24 lines
1.1 KiB
Twig

{#
/**
* @file
* Default theme implementation for a summary of a form email handler.
*
* Available variables:
* - settings: The current configuration for this email handler:
* - handler: The handler information, including:
* - id: The handler plugin id.
* - handler_id: The handler id.
* - label: The handler label.
* - description: The handler description.
*
* @ingroup themeable
*/
#}
{% if settings.debug %}<b class="color-error">{{ 'Debugging is enabled'|t }}</b><br/>{% endif %}
<b>{{ 'To:'|t }}</b> {{ settings.to_mail }}<br/>
{% if settings.cc_mail %}<b>{{ 'Cc:'|t }}</b> {{ settings.cc_mail }}<br/>{% endif %}
{% if settings.bcc_mail %}<b>{{ 'Bcc:'|t }}</b> {{ settings.bcc_mail }}<br/>{% endif %}
<b>{{ 'From:'|t }}</b> {{ settings.from_mail }} {% if settings.from_name %}&lt;{{ settings.from_name }}&gt;{% endif %}<br/>
<b>{{ 'Subject:'|t }}</b> {{ settings.subject }}<br/>
<b>{{ 'Settings:'|t }}</b> {{ settings.html ? 'HTML' : 'Plain text'|t }}{{ settings.html and settings.attachments ? '/' : '' }}{{ settings.attachments ? 'Attachments '|t : '' }}