{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_DESC")} %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROM2" }) }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC")} %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC")} %}
{% endblock %}
{% else %}
{% block ordermanager_admin_action_sendmail_viewer %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROM1" }) }}
{% if edit.getValue('sSendMailFromSource') == 'template' %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE" }) }}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMSUBJECT" }) }} {{ edit.getValue('sSendMailFromSubject') }}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_HTML" }) }} {{ edit.getValue('sSendMailFromTemplatename') }} {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC")} %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_PLAIN" }) }} {{ edit.getValue('sSendMailFromTemplatenamePlain') }} {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC")} %}
{% if edit.getValue('sSendMailFromTheme') == 'admin' %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_ADMIN" }) }}
{% elseif edit.getValue('sSendMailFromTheme') == 'frontend' %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_FRONTEND" }) }}
{% endif %}
{% elseif edit.getValue('sSendMailFromSource') == 'cms' %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS" }) }}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_SUBJECT" }) }}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_HTML" }) }}
{% for oContent in oView.getContentList() %}
{% if edit.getValue('sSendMailFromContentname') == oContent.getId() %}
{{ oContent.getFieldData('oxtitle') }} ({{ oContent.getFieldData('oxloadid') }})
{% endif %}
{% endfor %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_PLAIN" }) }}
{% for oContent in oView.getContentList() %}
{% if edit.getValue('sSendMailFromContentnamePlain') == oContent.getId() %}
{{ oContent.getFieldData('oxtitle') }} ({{ oContent.getFieldData('oxloadid') }})
{% endif %}
{% endfor %}
{% endif %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_FROM2" }) }}
{% if edit.getValue('blSendMailToCustomer') == 1 %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER" }) }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC")} %},
{% endif %}
{% if edit.getValue('blSendMailToOwner') == 1 %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER" }) }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC")} %},
{% endif %}
{% if edit.getValue('blSendMailToCustom') == 1 %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL" }) }}
"{{ edit.getValue('sSendMailToCustomAddress') }}"
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC")} %}
{% endif %}
{% if edit.getValue('blGetStornoArticles') == 1 %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES" }) }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC")} %}
{% endif %}
{% if edit.getValue('sSendMailReplyAddress') %}
{{ translate({ ident: "D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR" }) }} {{ edit.getValue('sSendMailReplyAddress') }}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC")} %}
{% endif %}
{% endblock %}
{% endif %}
{% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_ACTION_SENDMAIL_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_ACTION_SENDMAIL_DESC")} %}