<?php
// Copyright 1999-2017. Plesk International GmbH. All Rights Reserved.

$this->passVariablesToJavaScript([
    'URL_CHANGE_IP_SUBSCRIPTIONS' => $this->urlChangeIPSubscriptions,
    'URL_LIST_IP_ADDRESSES' => $this->urlListIPAddresses,
    'MESSAGE_POPUP_CHANGE_IP_TITLE_MULTIPLE' => $this->lmsg('popupChangeIpTitleMultiple'),
    'MESSAGE_POPUP_CHANGE_IP_TITLE_SINGLE' => $this->lmsg('popupChangeIpTitleSingle'),
    'MESSAGE_POPUP_CHANGE_IP_MAP_TO' => $this->lmsg('popupChangeIpMapTo'),
    'MESSAGE_POPUP_CHANGE_IP_MAPPING_AUTO' => $this->lmsg('popupChangeIpMappingAuto'),
    'MESSAGE_POPUP_CHANGE_IP_MAPPING_SHARED' => $this->lmsg('popupChangeIpMappingShared'),
    'MESSAGE_POPUP_CHANGE_IP_MAPPING_DEDICATED' => $this->lmsg('popupChangeIpMappingDedicated'),
    'MESSAGE_POPUP_CHANGE_IP_MAPPING_SELECTED' => $this->lmsg('popupChangeIpMappingSelected'),
    'MESSAGE_POPUP_CHANGE_IP_MAP_TO_SELECTED' => $this->lmsg('popupChangeIpMapToSelected'),
    'MESSAGE_POPUP_CHANGE_IP_IPV4' => $this->lmsg('popupChangeIpIpv4'),
    'MESSAGE_POPUP_CHANGE_IP_IPV6' => $this->lmsg('popupChangeIpIpv6'),
    'MESSAGE_POPUP_CHANGE_IP_BUTTON_OK' => $this->lmsg('popupChangeIpButtonOk'),
    'MESSAGE_POPUP_CHANGE_IP_BUTTON_CANCEL' => $this->lmsg('popupChangeIpButtonCancel'),
    'CHANGE_IP_LOCALE' => array_merge(
        Zend_Registry::get('translate')->getSection('components.elements.lookup'),
        [
            'label' => $this->lmsg('popupChangeIpMapToSelected'),
        ]
    )
]);
$this->includeMigratorJavaScript('locale.js');
$this->addJavaScriptLocaleKeys([
    'changingButtonTitle',
]);
$this->includeMigratorCss('popup/popup.css');
?>
<?php $this->includeMigratorJavaScript('lookup-extended.js'); ?>
<?php $this->includeMigratorJavaScript('popup/change-ip.js'); ?>