<?php
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
?>
<script type="text/javascript">
//<![CDATA[
Jsw.onReady(function() {
    new Jsw.Panel({
        renderTo: 'securitySettings',
        renderMode: 'top',
        cls: 'tools-list-box',
        items: [{
            componentType: 'Jsw.ListContainer',
            cls: 'tools-list',
            itemClass: 'tools-item',
            items: <?php echo json_encode($this->buttons) ?>

        }]
    });
});
//]]>
</script>
<div id="securitySettings" class="form-box">
    <?php if ($this->isAnyConfigured): ?>
    <div class="box-area">
        <div class="title ">
            <div class="title-area">
                <h3>
                    <span><?php echo $this->lmsg('securitySettingsTitle'); ?></span>
                </h3>
            </div>
        </div>
        <div class="content">
            <div class="content-area">
                <div id="secureBackup-content-area">
                    <p><?php echo $this->lmsg('securitySettingsDescription'); ?></p>
                </div>
            </div>
        </div>
        <table class="form-table form-limits" width="100%" cellspacing="0">
            <tr class="form-row">
                <td class="field-name nowrap">
                    <?php echo $this->lmsg('passwordProtection'); ?>
                </td>
                <td>
                    <?php if ($this->passwordProtection): ?>
                        <img class="b-indent-icon" src="<?php echo $this->skinUrl('/icons/16/plesk/ok.png'); ?>" alt="" />
                        <?php echo $this->lmsg('enabled'); ?>
                    <?php else: ?>
                        <img class="b-indent-icon" src="<?php echo $this->skinUrl('/icons/16/plesk/off.png'); ?>" alt="" />
                        <?php echo $this->lmsg('disabled'); ?>
                    <?php endif; ?>
                    [<a href="<?php echo $this->baseUrl($this->urls['securitySettings']); ?>"><?php echo $this->lmsg('change'); ?></a>]
                </td>
            </tr>
        </table>
    </div>
    <?php endif; ?>
</div>
