getRequestValue('id'); /** * product manager allow to check product settings */ $productManager = new ProductManager(); $productManager->loadByHostingId($hid); /** * add fields */ $field = new Hidden('id'); $this->addField($field); $this->generateDoubleSection([new Text('firstname'), new Text('lastname')]); $email =new InputGroup('usernameGroup'); $email->addInputComponent((new InputGroupElements\Text('username'))->addHtmlAttribute('readonly','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')]); if($productManager->get('cos_name') === ClassOfServices::CLASS_OF_SERVICE_QUOTA) { $field = new Hidden('currentCosId'); $this->addField($field); $field = new Select('cosId'); $this->addField($field); } } }