getRequestValue('id'); /** * product manager allow to check product settings */ $productManager = new ProductManager(); $productManager->loadByHostingId($hid); /** * add fields */ $field = new Hidden('id'); $this->addField($field); $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')]); $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'); $autoDeclineBusy = new Switcher('auto_busy'); $this->generateDoubleSection([$autoAcceptDecline, $autoDeclineBusy]); } }