leftSection = new HalfPageSection('leftSection'); $this->rightSection = new HalfPageSection('rightSection'); $this->addSection($this->leftSection) ->addSection($this->rightSection); $this->initFields(); } private function initFields() { /** * @var Lang $lang */ $lang = sl("lang"); //Virtualization $field = new Select('customconfigoption[virtualization]'); $field->setDefaultValue('qemu'); $field->setDescription('tip'); $this->leftSection->addField($field); //Default Node $field = new Select('customconfigoption[defaultNode]'); $field->setDescription('tip'); $this->rightSection->addField($field); //Check Available Resources $field = new Switcher('customconfigoption[checkResources]'); $field->setDescription('tip'); $this->leftSection->addField($field); //resetUsageFirstDayOfMonth $field = new Switcher('customconfigoption[resetUsageFirstDayOfMonth]'); $field->setDescription('tip'); $this->rightSection->addField($field); } }