{% extends '@OroAction/Operation/form.html.twig' %} {% import '@OroUI/macros.html.twig' as UI %} {% block widget_content_class %}widget-content email-form{% endblock %} {% block form %} {% form_theme form with ['@OroForm/Form/fields.html.twig', '@OroEmail/Form/fields.html.twig'] %}
{% set emailEditorOptions = { entityId: context.email.entityId, to: context.email.to, cc: context.email.cc, bcc: context.email.bcc, appendSignature: context.appendSignature, minimalWysiwygEditorHeight: 150, isSignatureEditable: is_granted('oro_user_user_update') } %}
{{ form_row(form.email.gridName) }} {{ form_row(form.email.from) }} {{ form_row(form.email.to) }} {{ form_row(form.email.cc) }} {{ form_row(form.email.bcc) }} {{ form_row(form.email.subject) }} {{ form_row(form.email.template, {'includeNonEntity': true, 'includeSystemTemplates': false}) }} {{ form_row(form.email.type) }} {{ form_row(form.email.body) }} {% set emailAttachmentOptions = { popupTriggerButton: '.attach-file', uploadNewButton: '.upload-new', popupContentEl: '.attachment-list-popup', entityAttachments: context.email.attachments.toArray, attachmentsAvailable: context.email.attachmentsAvailable } %} {{ form_row(form.email.attachments, {options: emailAttachmentOptions}) }} {{ form_row(form.email.contexts) }} {{ form_widget(form.email) }} {{ form_rest(form) }}
{{ oro_form_js_validation(form) }}
{% endblock %}