<?php
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
<?php if ($this->nonApplicableCustomersNum ): ?>
    Jsw.addStatusMessage('warning',
        <?php echo $this->jsLmsg('admin.controllers.business-model-upgrade.notes.nonApplicableCustomers', array(
            'count' => $this->nonApplicableCustomersNum,
            'link' => '<a href="' . $this->baseUrl('/business-model-upgrade/customers/') . '">' . $this->lmsg('admin.controllers.business-model-upgrade.notes.manualCustomersUpgradeLink') . '</a>',
        ))?>,
        {
            id: 'nonApplicableCustomers',
            renderMode: 'before',
            renderTo: 'content-body',
            closable: false
        }
    );
<?php endif; ?>
<?php if ($this->nonApplicableSubscriptionsNum ): ?>
    Jsw.addStatusMessage('warning',
        <?php echo $this->jsLmsg('admin.controllers.business-model-upgrade.notes.nonApplicableSubscriptions', array(
            'count' => $this->nonApplicableSubscriptionsNum,
            'link' => '<a href="' . $this->baseUrl('/business-model-upgrade/subscriptions/') . '">' . $this->lmsg('admin.controllers.business-model-upgrade.notes.manualSubscriptionsUpgradeLink') . '</a>',
        ))?>,
        {
            id: 'nonApplicableSubscriptions',
            renderMode: 'before',
            renderTo: 'content-body',
            closable: false
        }
    );
<?php endif; ?>
});
//]]>
</script>
