[{block name="ordermanager_admin_action_exportlist"}]
    <dl class="[{$blActionRestriction}]">
        [{include file="@d3ordermanager/admin/inc/d3ordermanager_activeswitch.tpl" oActionRequ=$oAction blActionRestriction=$blActionRestriction readonly=$readonly}]
        <dd style="margin-left: 30%;">
            [{if $oView->isEditMode()}]
                [{block name="ordermanager_admin_action_exportlist_editor"}]
                    <label for="fieldList">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTCONTAINS"}]</label>
                    <input type="hidden" name="value[aExportFieldList]" value="">
                    <SELECT id="fieldList" class="editinput" name="value[aExportFieldList][]" id="aExportFieldList" size="7" multiple [{$blActionRestriction}] [{$readonly}]>
                        [{foreach from=$oView->getItemFieldNames() item="sFieldName"}]
                            <option value="[{$sFieldName}]" [{if is_array($edit->getValue('aExportFieldList')) && in_array($sFieldName, $edit->getValue('aExportFieldList'))}]selected[{/if}]>[{$oView->getFieldNameDescription($sFieldName)}]</option>
                        [{/foreach}]
                    </SELECT><br>
                    [{oxmultilang ident="D3_ORDERMANAGER_REQU_MULTIPLE"}]<br>
                    [{if !$blActionRestriction}]
                        <input type="button" href="#" onclick="selectAllListElems(document.getElementById('aExportFieldList')); return false;" value="[{oxmultilang ident="D3_GENERAL_ORDERMANAGER_SELECT_ALL"}]" [{$readonly}]> <input type="button" href="#" onclick="selectNoListElems(document.getElementById('aExportFieldList')); return false;" value="[{oxmultilang ident="D3_GENERAL_ORDERMANAGER_SELECT_NONE"}]" [{$readonly}]>
                    [{/if}]

                    <br><br>
                    <label for="ExportTpl">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTTEMPLATE"}]</label>
                    <input id="ExportTpl" type="text" name="value[sExportTemplatename]" size="50" maxlength="250" value="[{$edit->getValue('sExportTemplatename')}]" [{$blActionRestriction}] [{$readonly}]>
                    [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_EXPORTTEMPLATE_DESC"}]<br>

                    <br><br>
                    <input style="margin-left: 20px;" id="FromThemeAdmin" type="radio" name="value[sExportListFromTheme]" value="admin" [{if $edit->getValue('sExportListFromTheme') == 'admin'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> <label for="FromThemeAdmin">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_ADMIN"}]</label><br>
                    <input style="margin-left: 20px;" id="FromThemeFrontend" type="radio" name="value[sExportListFromTheme]" value="frontend" [{if $edit->getValue('sExportListFromTheme') == 'frontend'}]checked[{/if}] [{$blActionRestriction}] [{$readonly}]> <label for="FromThemeFrontend">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_FRONTEND"}]</label> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_DESC"}]<br>

                    <br><br>
                    <label for="ExportExtension">[{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTEXTENSION"}]</label>
                    <input id="ExportExtension" type="text" name="value[sExportExtension]" size="50" maxlength="250" value="[{$edit->getValue('sExportExtension')}]" [{$blActionRestriction}] [{$readonly}]> [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_EXPORTEXTENSION_DESC"}]<br>

                    <br><br>[{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTLOCATION"}]<br><b>[{$oView->getExportExamplePath()}]</b>
                [{/block}]
            [{else}]
                [{block name="ordermanager_admin_action_exportlist_viewer"}]
                    [{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTCONTAINS"}]
                    <ul>
                        [{foreach from=$oView->getItemFieldNames() item="sFieldName"}]
                            [{if is_array($edit->getValue('aExportFieldList')) && in_array($sFieldName, $edit->getValue('aExportFieldList'))}]
                                <li>
                                    [{$oView->getFieldNameDescription($sFieldName)}]
                                </li>
                            [{/if}]
                        [{/foreach}]
                    </ul>
                    <br><br>
                    [{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTTEMPLATE"}] [{$edit->getValue('sExportTemplatename')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_EXPORTTEMPLATE_DESC"}]<br>
                    [{if $edit->getValue('sExportListFromTheme') == 'admin'}]
                        [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_ADMIN"}]
                    [{elseif $edit->getValue('sExportListFromTheme') == 'frontend'}]
                        [{oxmultilang ident="D3_ORDERMANAGER_ACTION_MAILSEND_FROMTPL_FRONTEND"}]
                    [{/if}]
                    <br><br>
                    [{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTEXTENSION"}] [{$edit->getValue('sExportExtension')}] [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_EXPORTEXTENSION_DESC"}]<br>
                    <br>[{oxmultilang ident="D3_ORDERMANAGER_ACTION_EXPORTLOCATION"}]<br><b>[{$oView->getExportExamplePath()}]</b>
                [{/block}]
            [{/if}]
            [{oxinputhelp ident="D3_ORDERMANAGER_ACTION_EXPORT_DESC"}]
        </dd>
        <div class="spacer"></div>
    </dl>
[{/block}]