http://modulesgarden.com * CONTACT -> contact@modulesgarden.com * * * This software is furnished under a license and may be used and copied * only in accordance with the terms of such license and with the * inclusion of the above copyright notice. This software or any other * copies thereof may not be provided or otherwise made available to any * other person. No title to and ownership of the software is hereby * transferred. * * * ******************************************************************** */ namespace ModulesGarden\ProxmoxAddon\App\UI\ServerSettings\Forms; use ModulesGarden\ProxmoxAddon\App\UI\ServerSettings\Providers\ServerSettingProvider; use ModulesGarden\ProxmoxAddon\App\UI\ServerSettings\Sections\ConsoleSection; use ModulesGarden\ProxmoxAddon\App\UI\ServerSettings\Sections\GeneralSection; use ModulesGarden\ProxmoxAddon\App\UI\Validators\NumberValidator; use ModulesGarden\ProxmoxAddon\Core\UI\Interfaces\AdminArea; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields\Hidden; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields\Select; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields\Text; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Fields\Textarea; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\FormInTab; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Sections\HalfPageSection; use ModulesGarden\ProxmoxAddon\Core\UI\Widget\Forms\Sections\RawSection; class ServerSettingsForm extends FormInTab implements AdminArea { protected $id = 'serverSettingsForm'; protected $name = 'serverSettingsForm'; protected $title = 'serverSettingsFormTitle'; public function isRawTitle() { return false; } public function initContent() { $this->unsetShowTitle(); //SettingProvider $this->setProvider(new ServerSettingProvider()); //general $generalSection = new GeneralSection(); $generalSection->setMainContainer($this->mainContainer); $this->addSection($generalSection); //load form $this->loadDataToForm(); } }