initIds('infoForm');
$this->setFormType('info');
$this->setProvider(new InfoSettingDataProvider());
$this->initFields();
$this->loadDataToForm();
}
public function getAllowedActions()
{
return ['info'];
}
private function initFields()
{
// $message = di('lang')->absoluteT('dnsinfomessage');
$message = 'DNS Information für
';
$this->addInternalAlert($message, null, 100);
$row = new InputGroup('MX');
$row->addInputComponent((new InputGroupElements\Text('mxthurdata'))->addHtmlAttribute('readonly','true'));
$row->addInputAddon('', false, '⇔');
$row->addInputComponent((new InputGroupElements\Text('mxactive'))->addHtmlAttribute('readonly','true'));
$this->addSection($row);
$row = new InputGroup('SPF');
$row->addInputComponent((new InputGroupElements\Text('spfthurdata'))->addHtmlAttribute('readonly','true'));
$row->addInputAddon('', false, '⇔');
$row->addInputComponent((new InputGroupElements\Text('spf'))->addHtmlAttribute('readonly','true'));
$this->addSection($row);
$row = new InputGroup('DMARC');
$row->addInputComponent((new InputGroupElements\Text('dmarcthurdata'))->addHtmlAttribute('readonly','true'));
$row->addInputAddon('', false, '⇔');
$row->addInputComponent((new InputGroupElements\Text('dmarc'))->addHtmlAttribute('readonly','true'));
$this->addSection($row);
$row = new InputGroup('DKIM');
$row->addInputComponent((new InputGroupElements\Text('dkimthurdata'))->addHtmlAttribute('readonly','true'));
$row->addInputAddon('', false, '⇔');
$row->addInputComponent((new InputGroupElements\Text('dkim'))->addHtmlAttribute('readonly','true'));
$this->addSection($row);
$this->generateDoubleSection([new Hidden('maildomain'), new Hidden('id')]);
}
}