<?php
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
?>
<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([
                'data' => $this->packagesList->fetchData(),
                'dataUrl' => $this->dataUrl,
                '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>
