[{block name="ordermanager_admin_action_sendmail"}]
[{include file="@d3ordermanager/admin/inc/d3ordermanager_activeswitch.tpl" oActionRequ=$oAction blActionRestriction=$blActionRestriction readonly=$readonly}]
[{if $oView->isEditMode()}] [{block name="ordermanager_admin_action_sendmail_editor"}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROM1"}]
getValue('sSendMailFromSource') == 'template'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]>

[{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"}]
[{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"}]
getValue('sSendMailFromTheme') == 'admin'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]>
getValue('sSendMailFromTheme') == 'frontend'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_DESC"}]

getValue('sSendMailFromSource') == 'cms'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]>




[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROM2"}]
getValue('blSendMailToCustomer') == 1}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC"}]
getValue('blSendMailToOwner') == 1}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC"}]
getValue('blSendMailToCustom') == 1}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC"}]
getValue('blGetStornoArticles') == 1}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC"}]
[{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC"}] [{/block}] [{else}] [{block name="ordermanager_admin_action_sendmail_viewer"}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROM1"}]
[{if $edit->getValue('sSendMailFromSource') == 'template'}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMSUBJECT"}] [{$edit->getValue('sSendMailFromSubject')}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_HTML"}] [{$edit->getValue('sSendMailFromTemplatename')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_PLAIN"}] [{$edit->getValue('sSendMailFromTemplatenamePlain')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTEMPLATE_DESC"}]
[{if $edit->getValue('sSendMailFromTheme') == 'admin'}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_ADMIN"}] [{elseif $edit->getValue('sSendMailFromTheme') == 'frontend'}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_FRONTEND"}] [{/if}] [{elseif $edit->getValue('sSendMailFromSource') == 'cms'}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_SUBJECT"}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_HTML"}] [{foreach from=$oView->getContentList() item="oContent"}] [{if $edit->getValue('sSendMailFromContentname') == $oContent->getId()}] [{$oContent->getFieldData('oxtitle')}] ([{$oContent->getFieldData('oxloadid')}]) [{/if}] [{/foreach}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMCMS_PLAIN"}] [{foreach from=$oView->getContentList() item="oContent"}] [{if $edit->getValue('sSendMailFromContentnamePlain') == $oContent->getId()}] [{$oContent->getFieldData('oxtitle')}] ([{$oContent->getFieldData('oxloadid')}]) [{/if}] [{/foreach}] [{/if}]
[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROM2"}]
[{if $edit->getValue('blSendMailToCustomer') == 1}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER"}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOCUSTOMER_DESC"}], [{/if}] [{if $edit->getValue('blSendMailToOwner') == 1}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER"}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOOWNER_DESC"}], [{/if}] [{if $edit->getValue('blSendMailToCustom') == 1}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL"}] "[{$edit->getValue('sSendMailToCustomAddress')}]" [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_TOMAIL_DESC"}] [{/if}]
[{if $edit->getValue('blGetStornoArticles') == 1}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES"}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_USESTORNOARTICLES_DESC"}]
[{/if}] [{if $edit->getValue('sSendMailReplyAddress')}] [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR"}] [{$edit->getValue('sSendMailReplyAddress')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_USEALTREPLYADR_DESC"}]
[{/if}] [{/block}] [{/if}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_SENDMAIL_DESC"}]
[{/block}]