generateDoubleSection([new Text('firstname'), new Text('lastname')]); $email = new InputGroup('usernameGroup'); $email->addTextField('username', false, true); $email->addInputAddon('emailSign', false, '@'); $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true')); $this->addSection($email); $this->generateDoubleSection([new Text('display_name'), new Select('status')]); $quota = new Text('quota'); $quota->setDescription('description'); $quota->addValidator(new Decimal(0)); $this->generateDoubleSection([$quota, new Select('unit')]); $passwd = new Password('password'); $passwd->setDescription('description'); $passwd->addValidator(new PasswordsValidator()); $passwd->notEmpty(); $repPasswd = (new Password('repeat_password'))->addValidator(new RepeatPasswordValidator()); $repPasswd->notEmpty(); $this->generateDoubleSection([$passwd, $repPasswd]); /* di('lang')->absoluteT('dnsinfomessage') ? $message = di('lang')->absoluteT('dnsinfomessage') : $message = 'DNS Informations for


'; $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('infomaildomain'), new Hidden('id')]); $this->generateDoubleSection([new Hidden('selfdns'), new Hidden('dnsok')]); */ } }