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]); } }