You are here

yamlform-handler-email-summary.html.twig in YAML Form 8

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.

File

templates/yamlform-handler-email-summary.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a summary of a form email handler.
  5. *
  6. * Available variables:
  7. * - settings: The current configuration for this email handler:
  8. * - handler: The handler information, including:
  9. * - id: The handler plugin id.
  10. * - handler_id: The handler id.
  11. * - label: The handler label.
  12. * - description: The handler description.
  13. *
  14. * @ingroup themeable
  15. */
  16. #}
  17. {% if settings.debug %}<b class="color-error">{{ 'Debugging is enabled'|t }}</b><br/>{% endif %}
  18. <b>{{ 'To:'|t }}</b> {{ settings.to_mail }}<br/>
  19. {% if settings.cc_mail %}<b>{{ 'Cc:'|t }}</b> {{ settings.cc_mail }}<br/>{% endif %}
  20. {% if settings.bcc_mail %}<b>{{ 'Bcc:'|t }}</b> {{ settings.bcc_mail }}<br/>{% endif %}
  21. <b>{{ 'From:'|t }}</b> {{ settings.from_mail }} {% if settings.from_name %}&lt;{{ settings.from_name }}&gt;{% endif %}<br/>
  22. <b>{{ 'Subject:'|t }}</b> {{ settings.subject }}<br/>
  23. <b>{{ 'Settings:'|t }}</b> {{ settings.html ? 'HTML' : 'Plain text'|t }}{{ settings.html and settings.attachments ? '/' : '' }}{{ settings.attachments ? 'Attachments '|t : '' }}