setFormType(FormConstants::UPDATE); $this->setProvider(new EditSettingDataProvider()); $this->initFields(); $this->loadDataToForm(); } public function initFields() { $this->addField((new Hidden('id'))); $email = new InputGroup('usernameGroup'); $email->addInputComponent((new InputGroupElements\Text('name'))->addHtmlAttribute('readonly','true')); $email->addInputAddon('emailSign', false, '@'); $email->addInputComponent((new InputGroupElements\Text('domain'))->addHtmlAttribute('readonly','true')); $this->addSection($email); $this->generateDoubleSection([new Text('description'), new Select('type')]); $this->generateDoubleSection([new Select('manager'), new Select('status')]); } }