leftSection = new HalfPageSection('leftSectionsdf'); $this->rightSection = new HalfPageSection('rightSectionsdf'); $this->addSection($this->leftSection) ->addSection($this->rightSection); $this->initFields(); } private function initFields() { //One User Per VPS $field = new Switcher('customconfigoption[oneUserPerVps]'); $field->setDescription('tip'); $field->setDefaultValue("on"); $this->leftSection->addField($field); //Username Prefix $field = new Text('customconfigoption[userPrefix]'); $field->setDescription('tip'); $field->setDefaultValue('proxmoxVPS_{$serviceid}'); $this->rightSection->addField($field); //Realm $field = new Select('customconfigoption[realm]'); $field->setDescription('tip'); $field->setDefaultValue('pve'); $this->leftSection->addField($field); //Comment $field = new Textarea('customconfigoption[userComment]'); $field->setDescription('tip'); $field->setDefaultValue('User from module ProxmoxVPS for WHMCS'); $this->rightSection->addField($field); //Role $field = new Select('customconfigoption[userRole]'); $field->setDescription('tip'); $field->setDefaultValue('PVEVMUser'); $this->leftSection->addField($field); } }