| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /* * ********************************************************************
- * Proxmox Product developed. (Dec 7, 2017)
- * *
- *
- * CREATED BY MODULESGARDEN -> 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();
- }
- }
|