{% extends '@OroWorkflow/Widget/widget/transitionForm.html.twig' %} {% block transition_widget_class %}widget-content email-form{% endblock %} {% block transition_form %} {% form_theme form with ['@OroForm/Form/fields.html.twig', '@OroEmail/Form/fields.html.twig'] %} {% set context = workflowItem.data %}
{% 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'), editorComponentName: form.email.body.vars.attr['data-page-component-name'] is defined ? form.email.body.vars.attr['data-page-component-name'] : form.email.body.vars.attr['data-ftid'] } %}
{{ 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 %}