getRequestValue('id'); /** * product manager allow to check product settings */ $productManager = new ProductManager(); $productManager->loadByHostingId($hid); $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')]); $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]); $type = new Select('type'); $capacity = new Text('capacity'); $this->generateDoubleSection([$type, $capacity]); $field = new Text('description'); $this->addField($field); $field = new Text('notes'); $this->addField($field); $autoAcceptDecline = (new Switcher('auto_accept'))->setDefaultValue('on'); $autoDeclineBusy = (new Switcher('auto_busy'))->setDefaultValue('on'); $this->generateDoubleSection([$autoAcceptDecline, $autoDeclineBusy]); } }