<?php declare(strict_types=1);
defined('MW_PATH') or exit('No direct script access allowed');

/**
 * This file is part of the MailWizz EMA application.
 *
 * @package MailWizz EMA
 * @author MailWizz Development Team <support@mailwizz.com>
 * @link https://www.mailwizz.com/
 * @copyright MailWizz EMA (https://www.mailwizz.com)
 * @license https://www.mailwizz.com/license/
 * @since 2.0.0
 */

/** @var Controller $controller */
$controller = controller();

/** @var CActiveForm $form */
$form = $controller->getData('form');

/** @var OptionCustomerSubaccountPermissionsServers $serversPermissions */
$serversPermissions = $controller->getData('serversPermissions');

if (empty($serversPermissions)) {
    return;
}

?>
<div class="col-lg-3">
    <div class="form-group">
		<?php echo $form->labelEx($serversPermissions, 'manage'); ?>
		<?php echo $form->dropDownList($serversPermissions, 'manage', $serversPermissions->getYesNoOptions(), $serversPermissions->fieldDecorator->getHtmlOptions('manage')); ?>
		<?php echo $form->error($serversPermissions, 'manage'); ?>
    </div>
</div>