{% include "headitem.html.twig" with {title: "GENERAL_ADMIN_TITLE"|translate} %}

<script type="text/javascript">
<!--
    {% if updatelist == 1 %}
        UpdateList('{{ oxid }}');
    {% endif %}

    function UpdateList( sID)
    {
        let oSearch = parent.list.document.getElementById("search");
        oSearch.oxid.value=sID;
        oSearch.fnc.value='';
        oSearch.submit();
    }

    function EditThis( sID)
    {
        let oTransfer = document.getElementById("transfer");
        oTransfer.oxid.value=sID;
        oTransfer.cl.value='{{ oViewConf.getActiveClassName() }}';
        oTransfer.submit();

        let oSearch = parent.list.document.getElementById("search");
        oSearch.actedit.value = 0;
        oSearch.oxid.value=sID;
        oSearch.submit();
    }

    function _groupExp(el)
    {
        let _cur = el.parentNode;

        if (_cur.className === "exp") _cur.className = "";
          else _cur.className = "exp";
    }

    function ChangeLstrt()
    {
        let oSearch = document.getElementById("search");
        if (document.search != null && document.search.lstrt != null)
            oSearch.lstrt.value=0;
    }
    -->
</script>

<style>
    fieldset{
        border: 1px inset black;
        background-color: #F0F0F0;
    }

    legend{
        font-weight: bold;
    }

    .groupExp dl dt{
        font-weight: normal;
        width: 40%;
        padding-left: 10px;
    }

    .groupExp dl dd {
        margin-left: 42%;
        padding-top: 5px;
    }

    .groupExp.disabled dl dt,
    .groupExp.disabled dl dd,
    .groupExp.disabled dl dd a,
    .groupExp.disabled .exp a.rc b,
    .groupExp.disabled a.rc b,
    .groupExp dl.disabled dt,
    .groupExp dl.disabled dd,
    .groupExp dl.disabled dd a {
        color: darkgrey;
    }

    .groupExp dl.disabled {
        border-top: none;

        background: #ffffe0; /* Old browsers */
        background: -moz-linear-gradient(top, #ffffe0 0%, #f0f0f0 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffe0), color-stop(100%,#f0f0f0)); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top, #ffffe0 0%,#f0f0f0 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top, #ffffe0 0%,#f0f0f0 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(top, #ffffe0 0%,#f0f0f0 100%); /* IE10+ */
        background: linear-gradient(to bottom, #ffffe0 0%,#f0f0f0 100%); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffe0', endColorstr='#f0f0f0',GradientType=0 ); /* IE6-9 */

    }

    .edittext select.editinput {
        width: auto;
    }
    details, .restrictioninfo {
        margin: 0 0 15px;
        padding: 6px 9px 2px 18px;
        border: 1px solid silver;
        color: silver;
        border-radius: .25rem;
        border-left: .25rem #028fe8 solid;
    }
    details summary {
        margin: 0 0 3px -12px;
        cursor: pointer;
    }
    .restrictioninfo {
        color: black;
    }
</style>

{% if readonly %}
    {% set readonly = "readonly disabled" %}
{% else %}
    {% set readonly = "" %}
{% endif %}

<form name="transfer" id="transfer" action="{{ oViewConf.getSelfLink()|raw }}" method="post">
    {{ oViewConf.getHiddenSid()|raw }}
    <input type="hidden" name="oxid" value="{{ oxid }}">
    <input type="hidden" name="oxidCopy" value="{{ oxid }}">
    <input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
    <input type="hidden" name="editlanguage" value="{{ editlanguage }}">
</form>

<form name="myedit" id="myedit" action="{{ oViewConf.getSelfLink()|raw }}" method="post" style="padding: 0;margin: 0;height:0;">
    {{ oViewConf.getHiddenSid()|raw }}
    <input type="hidden" name="cl" value="{{ oViewConf.getActiveClassName() }}">
    <input type="hidden" name="fnc" value="">
    <input type="hidden" name="oxid" value="{{ oxid }}">
    <input type="hidden" name="voxid" value="{{ oxid }}">
    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('oxid') }}]" value="{{ oxid }}">

    <table style="padding: 0; border: none; width:98%;">
        {% if edit.getId() and not edit.getLicenseActive() %}
            <tr>
                <td style="vertical-align:top;" colspan="2">
                    <div class="extension_warning">{{ translate({ ident: "D3_ORDERMANAGER_ERROR_IEXECJOBSLIMIT" }) }}</div>
                </td>
            </tr>
        {% endif %}

        {% if oView.triggersAreAllowed() %}
            {% set blActionTriggersRestriction = "" %}
        {% else %}
            {% set blActionTriggersRestriction = "readonly disabled" %}
            {% set blRestricted = true %}
        {% endif %}

        {% if oView.scriptsAreAllowed() %}
            {% set blActionScriptsRestriction = "" %}
        {% else %}
            {% set blActionScriptsRestriction = "readonly disabled" %}
            {% set blRestricted = true %}
        {% endif %}

        <tr>
            <td style="vertical-align: top; padding-top:10px;padding-left:10px;">

                <details>
                    <summary>{{ translate({ ident: "D3_GENERAL_ORDERMANAGER_DESCRIPTION" }) }}</summary>
                    {{ translate({ ident: "d3tbclordermanager_items_trigger_desc" }) }}
                </details>

                {% if edit.getBasicRestrictionSettings() %}
                    <div class="restrictioninfo">
                        {{ translate({ ident: "D3_GENERAL_ORDERMANAGER_BASICRESTRICTIONS" }) }}
                    </div>
                {% endif %}

                <div class="groupExp">
                    <div class="">
                        <a class="rc" onclick="_groupExp(this); return false;" href="#">
                            <b>
                                {{ translate({ ident: "D3_ORDERMANAGER_MAIN_FIELDSET_CRONJOB" }) }}
                                {% if edit.getFieldData('oxactive') == 1 %}<i class="fa fa-check-circle d3fa-color-green"></i>{% endif %}
                            </b>
                        </a>

                        <div>
                            <dl>
                                <dt>
                                    <label for="MainActive">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_ACTIVE" }) }}</label>
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('oxactive') }}]" value='0'>
                                    <input id="MainActive" class="edittext" type="checkbox" name="editval[{{ edit.d3GetFieldLongName('oxactive') }}]" value='1' {% if edit.getFieldData('oxactive') == 1 %}checked{% endif %} {{ readonly }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_ACTIVE_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_ACTIVE_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        {% if blUseTimeCheck %}
                            <div>
                                <dl>
                                    <dt>
                                        {{ translate({ ident: "D3_ORDERMANAGER_MAIN_ACTIVFROMTILL" }) }}&nbsp;
                                    </dt>
                                    <dd>
                                        <label for="MainActiveFrom">{{ translate({ ident: "D3_MODPROFILE_MAIN_ACTIVEFROM" }) }}</label>&nbsp;<input id="MainActiveFrom" type="text" class="editinput" size="27" name="editval[{{ edit.d3GetFieldLongName('oxactivefrom') }}]" value="{{ edit.getFieldData('oxactivefrom')|format_date }}" {% include "help.html.twig" with {helpid: "article_vonbis"} %} {{ readonly }}><br>
                                        <label for="MainActiveTo">{{ translate({ ident: "D3_MODPROFILE_MAIN_ACTIVETO" }) }}</label>&nbsp;&nbsp;<input id="MainActiveTo" type="text" class="editinput" size="27" name="editval[{{ edit.d3GetFieldLongName('oxactiveto') }}]" value="{{ edit.getFieldData('oxactiveto')|format_date }}" {% include "help.html.twig" with {helpid: "article_vonbis"} %} {{ readonly }}>
                                    </dd>
                                    <div class="spacer"></div>
                                </dl>
                            </div>
                        {% endif %}

                        <div>
                            <dl>
                                <dt>
                                    <label for="MainCJID">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_CRONJOBID" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('D3_CRONJOBID') }}]" value="0">
                                    <input id="MainCJID" type="text" size="5" maxlength="{{ edit.d3modprofile__d3_cronjobid.fldmax_length }}" class="edittext ext_edittext" name="editval[{{ edit.d3GetFieldLongName('D3_CRONJOBID') }}]" value="{% if edit.getFieldData('D3_CRONJOBID') %}{{ edit.getFieldData('D3_CRONJOBID') }}{% else %}0{% endif %}" {{ readonly }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_SET_CRON_JOB_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_SET_CRON_JOB_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl>
                                <dt>
                                    <label for="MainMarkOrder">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_MARKORDER" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('D3_OM_MARKORDER') }}]" value="0">
                                    <input id="MainMarkOrder" type="checkbox" onclick="if(this.checked){document.getElementById('delayTime').style.display = 'block';}else{document.getElementById('delayTime').style.display = 'none';}" class="edittext ext_edittext" name="editval[{{ edit.d3GetFieldLongName('D3_OM_MARKORDER') }}]" value="1" {% if edit.getFieldData('D3_OM_MARKORDER') %}checked{% endif %} {{ readonly }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_MARKORDER_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_MARKORDER_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div id="delayTime" style="display:{% if edit.getFieldData('D3_OM_MARKORDER') %}block{% else %}none{% endif %};">
                            <dl>
                                <dt>
                                    <label for="MainMarkOrderDelay">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainMarkOrderDelay" type="text" name="value[iUnmarkExecDelayTimeValue]" class="edittext ext_edittext" size="3" maxlength="5" value="{% if edit.getValue('iUnmarkExecDelayTimeValue') %}{{ edit.getValue('iUnmarkExecDelayTimeValue') }}{% else %}1{% endif %}" {{ readonly }}>
                                    <label for="MainMarkOrderUnit" style="position: absolute; left: -2000px">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_UNMARKEDORDERUNIT" }) }}</label>
                                    <select id="MainMarkOrderUnit" name="value[sUnmarkExecDelayTimeUnit]" class="edittext ext_edittext" size="1" {{ readonly }}>
                                        <option value="days" {% if edit.getValue('sUnmarkExecDelayTimeUnit') == 'days' %}selected{% endif %}>{{ translate({ ident: "D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY_DAY" }) }}</option>
                                        <option value="hours" {% if edit.getValue('sUnmarkExecDelayTimeUnit') == 'hours' %}selected{% endif %}>{{ translate({ ident: "D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY_HOUR" }) }}</option>
                                        <option value="minutes" {% if edit.getValue('sUnmarkExecDelayTimeUnit') == 'minutes' %}selected{% endif %}>{{ translate({ ident: "D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY_MINUTE" }) }}</option>
                                    </select>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_UNMARKEDEXECDELAY_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainCronPreExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainCronPreExecScript" type="text" class="edittext ext_edittext" name="value[sCronjobPreExecuteScript]" value="{{ edit.getValue('sCronjobPreExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainCronPostExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainCronPostExecScript" type="text" class="edittext ext_edittext" name="value[sCronjobPostExecuteScript]" value="{{ edit.getValue('sCronjobPostExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                    </div>
                </div>

                <div class="groupExp">
                    <div class="">
                        <a class="rc" onclick="_groupExp(this); return false;" href="#">
                            <b>
                                {{ translate({ ident: "D3_ORDERMANAGER_MAIN_FIELDSET_MANUALLY" }) }}
                                {% if edit.getFieldData('D3_OM_EXECMANUALLY') %}<i class="fa fa-check-circle d3fa-color-green"></i>{% endif %}
                            </b>
                        </a>

                        <div>
                            <dl>
                                <dt>
                                    <label for="MainExecManually">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_EXECMANUALLY" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('D3_OM_EXECMANUALLY') }}]" value="0">
                                    <input id="MainExecManually" type="checkbox" class="edittext ext_edittext" name="editval[{{ edit.d3GetFieldLongName('D3_OM_EXECMANUALLY') }}]" value="1" {% if edit.getFieldData('D3_OM_EXECMANUALLY') %}checked{% endif %} {{ readonly }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_EXECMANUALLY_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_EXECMANUALLY_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainManuallyPreExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainManuallyPreExecScript" type="text" class="edittext ext_edittext" name="value[sManuallyPreExecuteScript]" value="{{ edit.getValue('sManuallyPreExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainManuallyPostExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainManuallyPostExecScript" type="text" class="edittext ext_edittext" name="value[sManuallyPostExecuteScript]" value="{{ edit.getValue('sManuallyPostExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl>
                                <dt>
                                    <label for="MainExecManuallyMeetCondition">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_EXECMANUALLYMEETCONDITION" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input type="hidden" name="value[sManuallyExecMeetCondition]" value="0">
                                    <input id="MainExecManuallyMeetCondition" type="checkbox" class="edittext ext_edittext" name="value[sManuallyExecMeetCondition]" value="1" {% if edit.getValue('sManuallyExecMeetCondition') %}checked{% endif %} {{ readonly }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_EXECMANUALLYMEETCONDITION_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_EXECMANUALLYMEETCONDITION_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                    </div>
                </div>

                <div class="groupExp">
                    <div class="">
                        <a class="rc" onclick="_groupExp(this); return false;" href="#">
                            <b>
                                {{ translate({ ident: "D3_ORDERMANAGER_MAIN_FIELDSET_AFTERORDERCOMPLETED" }) }}
                                {% if edit.getFieldData('D3_OM_ORDERFINISHTRIGGERED') %}<i class="fa fa-check-circle d3fa-color-green"></i>{% endif %}
                            </b>
                        </a>

                        <div>
                            <dl class="{{ blActionTriggersRestriction }}">
                                <dt>
                                    <label for="MainExecOrderFinishTriggered">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_EXECORDERFINISHTRIGGERED" }) }}</label>
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('D3_OM_ORDERFINISHTRIGGERED') }}]" value="0" {{ blActionTriggersRestriction }}>
                                    <input id="MainExecOrderFinishTriggered" type="checkbox" class="edittext ext_edittext" name="editval[{{ edit.d3GetFieldLongName('D3_OM_ORDERFINISHTRIGGERED') }}]" value="1" {% if edit.getFieldData('D3_OM_ORDERFINISHTRIGGERED') %}checked{% endif %} {{ readonly }} {{ blActionTriggersRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_EXECORDERFINISHTRIGGERED_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_EXECORDERFINISHTRIGGERED_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainFinishPreExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainFinishPreExecScript" type="text" class="edittext ext_edittext" name="value[sOrderFinishTriggeredPreExecuteScript]" value="{{ edit.getValue('sOrderFinishTriggeredPreExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainFinishPostExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainFinishPostExecScript" type="text" class="edittext ext_edittext" name="value[sOrderFinishTriggeredPostExecuteScript]" value="{{ edit.getValue('sOrderFinishTriggeredPostExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                    </div>
                </div>

                <div class="groupExp">
                    <div class="">
                        <a class="rc" onclick="_groupExp(this); return false;" href="#">
                            <b>
                                {{ translate({ ident: "D3_ORDERMANAGER_MAIN_FIELDSET_AFTERORDERSAVE" }) }}
                                {% if edit.getFieldData('D3_OM_ORDERSAVETRIGGERED') %}<i class="fa fa-check-circle d3fa-color-green"></i>{% endif %}
                            </b>
                        </a>

                        <div>
                            <dl class="{{ blActionTriggersRestriction }}">
                                <dt>
                                    <label for="MainExecOrderFinishTriggered">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_EXECORDERSAVETRIGGERED" }) }}</label>
                                </dt>
                                <dd>
                                    <input type="hidden" name="editval[{{ edit.d3GetFieldLongName('D3_OM_ORDERSAVETRIGGERED') }}]" value="0" {{ blActionTriggersRestriction }}>
                                    <input id="MainExecOrderFinishTriggered" type="checkbox" class="edittext ext_edittext" name="editval[{{ edit.d3GetFieldLongName('D3_OM_ORDERSAVETRIGGERED') }}]" value="1" {% if edit.getFieldData('D3_OM_ORDERSAVETRIGGERED') %}checked{% endif %} {{ readonly }} {{ blActionTriggersRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_EXECORDERSAVETRIGGERED_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_EXECORDERSAVETRIGGERED_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainSavePreExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainSavePreExecScript" type="text" class="edittext ext_edittext" name="value[sOrderSaveTriggeredPreExecuteScript]" value="{{ edit.getValue('sOrderSaveTriggeredPreExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_PREEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                        <div>
                            <dl class="{{ blActionScriptsRestriction }}">
                                <dt>
                                    <label for="MainSavePostExecScript">{{ translate({ ident: "D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT" }) }}</label>&nbsp;
                                </dt>
                                <dd>
                                    <input id="MainSavePostExecScript" type="text" class="edittext ext_edittext" name="value[sOrderSaveTriggeredPostExecuteScript]" value="{{ edit.getValue('sOrderSaveTriggeredPostExecuteScript') }}" {{ readonly }} {{ blActionScriptsRestriction }}>
                                    {% include "inputhelp.html.twig" with {'sHelpId': help_id("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC"), 'sHelpText': help_text("D3_ORDERMANAGER_MAIN_POSTEXECUTESCRIPT_DESC")} %}
                                </dd>
                                <div class="spacer"></div>
                            </dl>
                        </div>

                    </div>
                </div>

                <table style="padding: 0; border: none;">
                    <tr>
                        <td class="edittext" colspan="2" style="padding-top: 20px;">
                            <span class="d3modcfg_btn icon d3color-green">
                                <button type="submit" class="edittext" name="saveArticle" onClick="document.myedit.fnc.value='save'" {{ readonly }}>
                                    <i class="fas fa-check-circle fa-inverse"></i>{{ translate({ ident: "D3_GENERAL_MODPROFILE_SAVE" }) }}
                                </button>
                            </span>
                        </td>
                    </tr>
                </table>
            </td>
<!-- Anfang rechte Seite -->
            <td class="edittext" style="text-align:left; vertical-align:top; height:99%;padding-left:5px;padding-bottom:30px;padding-top:10px;">
            </td>
<!-- Ende rechte Seite -->
        </tr>
    </table>
</form>

{% include "@d3modcfg_lib/admin/inc/inc.html.twig" %}