easy-email-type-preview.html.twig in Easy Email 8
Same filename and directory in other branches
easy_email.html.twig Default theme implementation to present Email data.
This template is used when viewing Email pages.
Available variables:
- content: A list of content items. Use 'content' to print all content, or
- attributes: HTML attributes for the container element.
See also
1 theme call to easy-email-type-preview.html.twig
- EasyEmailForm::buildForm in src/
Form/ EasyEmailForm.php - Form constructor.
File
templates/easy-email-type-preview.html.twigView source
- {#
- /**
- * @file easy_email.html.twig
- * Default theme implementation to present Email data.
- *
- * This template is used when viewing Email pages.
- *
- *
- * Available variables:
- * - content: A list of content items. Use 'content' to print all content, or
- * - attributes: HTML attributes for the container element.
- *
- * @see template_preprocess_easy_email()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('easy_email/preview') }}
- <div{{ attributes.addClass('easy-email', 'preview') }}>
- <fieldset data-drupal-selector="headers">
- <legend>{{ 'Headers' | t }}</legend>
- {% for header in headers %}
- <div data-drupal-selector="header-{{ header.name }}"><label>{{ header.name }}:</label> <span class="value">{{ header.value }}</span></div>
- {% endfor %}
- </fieldset>
- <fieldset data-drupal-selector="inbox-preview">
- <legend>{{ 'Inbox Preview' | t }}</legend>
- <div class="easy-email-resizable inbox-preview-resizable">
- {{ inbox_preview }}
- </div>
- </fieldset>
- {% if preview_html_url %}
- <fieldset data-drupal-selector="html-body" class="easy-email-resizable">
- <legend>{{ 'HTML Body' | t }}</legend>
- <iframe frameBorder="0" width="100%" height="100%" src="{{ preview_html_url }}"></iframe>
- </fieldset>
- {% endif %}
- {% if preview_plain_url %}
- <fieldset data-drupal-selector="plain-body" class="easy-email-resizable">
- <legend>{{ 'Plain Text Body' | t }}</legend>
- <iframe frameBorder="0" width="100%" height="100%" src="{{ preview_plain_url }}"></iframe>
- </fieldset>
- {% endif %}
- {% if attachments %}
- <fieldset data-drupal-selector="attachments">
- <legend>{{ 'Attachments' | t }}</legend>
- {{ attachments }}
- </fieldset>
- {% endif %}
- </div>