{$layout}
{$template "../settings_menu"}
{$template "/left_menu_with_menu"}
{$template "/code_editor"}

<div class="right-box with-menu">
    {$if .featureIsOn}
    <div class="request-scripts-config-container">
        <div v-if="hasGroupConfig">
            <div class="margin"></div>
            <warning-message>由于已经在当前<a :href="groupSettingURL">网站分组</a>中进行了对应的配置，在这里的配置将不会生效。</warning-message>
        </div>
        <div :class="{'opacity-mask': hasGroupConfig}">
            <div class="ui form request-scripts-config-form">
                <div class="form-title">请求脚本配置</div>
                
                <form method="post" data-tea-action="$" data-tea-success="success">
                    <input type="hidden" name="webId" :value="webId"/>
                    <csrf-token></csrf-token>

                    <http-request-scripts-config-box :v-request-scripts-config="requestScriptsConfig" :v-auditing-status="auditingStatus"></http-request-scripts-config-box>

                    <submit-btn></submit-btn>
                </form>
            </div>
        </div>
    </div>
    {$else}
    <server-feature-required></server-feature-required>
    {$end}
</div>