<?php
/**
 * Class MassChangeStatusForm
 * User: Nessandro
 * Date: 2019-10-11
 * Time: 12:26
 * @package ModulesGarden\Servers\ZimbraEmail\App\UI\Client\EmailAccount\Forms
 */

namespace ModulesGarden\Servers\ZimbraEmail\App\UI\Client\EmailAccount\Forms;


use ModulesGarden\Servers\ZimbraEmail\App\UI\Client\DistributionList\Providers\DeleteListDataProvider;
use ModulesGarden\Servers\ZimbraEmail\App\UI\Client\EmailAccount\Providers\AccountDataProvider;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Interfaces\ClientArea;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\BaseForm;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Hidden;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\Fields\Select;
use ModulesGarden\Servers\ZimbraEmail\Core\UI\Widget\Forms\FormConstants;

class MassChangeStatusForm extends BaseForm implements ClientArea
{
    protected $id    = 'massChangeStatusForm';
    protected $name  = 'massChangeStatusForm';
    protected $title = 'massChangeStatusForm';

    public function initContent()
    {
        $this->setFormType(FormConstants::UPDATE);
        $this->dataProvider = new AccountDataProvider();

        $field = new Select('status');
        $this->addField($field);

        $this->loadDataToForm();
    }

}