{% extends "wcs/backoffice.html" %} {% load i18n %} {% block appbar-title %}{% trans "Mail Template" %} - {{ mail_template.name }}{% endblock %} {% block appbar-actions %} {% if not mail_template.is_readonly %} {% include "wcs/backoffice/includes/documentation-editor-link.html" %} {% endif %} {% endblock %} {% block body %} {% include "wcs/backoffice/includes/documentation.html" with element=mail_template object=mail_template %} {% if mail_template.subject and mail_template.body %}

{% trans "Subject:" %} {{ mail_template.subject }}

{{ mail_template.body }}
{% if mail_template.attachments %} {% endif %}
{% for workflow in mail_template.get_places_of_use %} {% if forloop.first %}

{% trans "Usage in workflows" %}

{% endif %} {% endfor %} {% else %}
{% trans "This mail template still needs to be configured." %}
{% endif %} {% endblock %} {% block sidebar-content %} {% if mail_template.is_readonly %}

{% trans "This mail template is readonly." %}

{{ view.snapshot_info_block|safe }} {% else %}

{% trans "Actions" %}

{% trans "Navigation" %}

{% endif %} {% include 'wcs/backoffice/includes/applications.html' with applications=mail_template.applications prefix='../' %} {% endblock %}