[{include file="headitem.tpl" title="GENERAL_ADMIN_TITLE"|oxmultilangassign}]

<link rel="stylesheet" href="[{$oViewConf->getModuleUrl('ys_shipcloud', 'out/css/ys_shipcloud.min.css')}]">

<script type="text/javascript" src="[{$oViewConf->getModuleUrl('ys_shipcloud', 'out/js/ys_shipcloud.min.js')}]"></script>

<form name="transfer" id="transfer" action="[{$oViewConf->getSelfLink()}]" method="post">
    [{$oViewConf->getHiddenSid()}]
    <input type="hidden" name="oxid" value="[{$oxid}]">
    <input type="hidden" name="cl" value="ShipcloudPackageTemplate">
    <input type="hidden" name="fnc" value="">
    <input type="hidden" name="actshop" value="[{$oViewConf->getActiveShopId()}]">
    <input type="hidden" name="updatenav" value="">
    <input type="hidden" name="editlanguage" value="[{$editlanguage}]">
</form>
<div class="shipcloud">
    <div class="container">
        <div class="ys-info">
            [{oxmultilang ident="YS_PACKAGE_TEMPLATE_INFO"}]
        </div>

        <form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post">
            [{$oViewConf->getHiddenSid()}]
            <input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
            <input type="hidden" name="fnc" value="save">
            <input type="hidden" name="actshop" value="[{$oViewConf->getActiveShopId()}]">

            [{foreach from=$oView->getPackageTemplates() item=aPackageTemplate key=iKey name="packageTemplates"}]
                [{include file="shipcloud_package_template_formgroup.tpl" iKey=$smarty.foreach.packageTemplates.iteration aPackageTemplate=$aPackageTemplate myKey=$iKey}]
            [{/foreach}]
            <div id="package-template-break"></div>
            [{*if not $oView->getPackageTemplates()}]
                <div class="new-package-template-connection"><span></span></div>
            [{/if*}]
            <div class="new-package-template"><span><i class="fas fa-plus"></i></span></div>
            <div class="ys-package-template-save">
                <div class="">
                    <div class="ys-setting-saveline">
                        <input id="jq-save-feed-settings" type="submit" class="btn" value="[{oxmultilang ident="YS_BASE_SAVE"}]">
                    </div>
                </div>
            </div>
        </form>

        <div id="emptyfiltergroup" style="display:none">
            [{include file="shipcloud_package_template_formgroup.tpl" iKey="xKEYx" aPackageTemplate=$oView->getEmptyPackageTemplate()}]
        </div>
    </div>
</div>