<?php
// Copyright 1999-2024. Plesk International GmbH. All rights reserved.
?>
<?= $this->form ?>
<?= $this->requireJs('app/ssl-certificate/list', [
    'locale' => [
        'currentCertificates' => $this->lmsg('currentCertificates'),
        'currentCertificatesHint' => $this->lmsg('currentCertificatesHint'),
        'certificatesList' => $this->lmsg('certificatesList'),
        'certificatesListHint' => $this->lmsg('certificatesListHint'),
        'pleskCertificate' => $this->lmsg('pleskCertificate'),
        'mailServerCertificate' => $this->lmsg('mailServerCertificate'),
        'change' => $this->lmsg('change'),
    ],
    'showServerSections' => $this->showServerSections,
    'pleskCertificateDescription' => $this->pleskCertificateDescription,
    'mailServerCertificateDescription' => $this->mailServerCertificateDescription,
    'sslCertificatesList' => [
        'searchFilters' => $this->sslCertificatesList->getSearchFilterConfig(),
        'data' => $this->sslCertificatesList->fetchData(),
        'dataUrl' => "/ssl-certificate/list-data{$this->domIdSuffix}",
        'locale' => $this->sslCertificatesList->getLocale(),
    ],
    'urls' => [
        'secure-panel' => '/ssl-certificate/secure-panel',
        'secure-mail-server' => '/ssl-certificate/secure-mail-server',
        'add' => "/ssl-certificate/add{$this->domIdSuffix}",
        'edit' => "/ssl-certificate/edit{$this->domIdSuffix}/certificateId/%%id%%",
        'download' => "/ssl-certificate/download{$this->domIdSuffix}/certificateId/%%id%%",
    ],
    'isDemo' => $this->isDemo,
    'domIdSuffix' => $this->domIdSuffix,
    'webmailAvailable' => $this->webmailAvailable,
    'mailAvailable' => $this->mailAvailable,
]) ?>
