<?php
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
?>
<?= $this->partial('partials/tabs.phtml', ['tabs' => $this->tabs]); ?>
<script type="text/javascript">
    //<![CDATA[
    Plesk.require('app/pum', function (Pum) {
        new Jsw.Hint({
            renderTo: 'main',
            hint: <?php echo $this->jsLmsg('hint'); ?>
        });

        new Jsw.Panel({
            cls: 'list-box',
            renderTo: 'main',
            items: [
                new Pum.List(<?php echo Zend_Json::encode([
                    'updatesOnly' => $this->updatesOnly,
                    'data' => $this->packagesList->fetchData(),
                    'searchFilters' => $this->packagesList->getSearchFilterConfig(),
                    'urls' => [
                        'packageInfo' => $this->url(['action' => 'info']),
                        'packageUpdateInfo' => $this->url(['action' => 'update-info']),
                        'updatePackages' => $this->url(['action' => 'update']),
                        'lock' => $this->url(['action' => 'lock']),
                        'unlock' => $this->url(['action' => 'unlock']),
                    ],
                ]); ?>)
            ]
        });
    });
    //]]>
</script>
