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