| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace ModulesGarden\Servers\ProxmoxCloudVps\App\UI\Admin\Product\Sections;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\AdminArea;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Fields\Switcher;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\BoxSection;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\HalfPageSection;
- class ConfigurableOptionUnitSection extends BoxSection implements AdminArea
- {
- protected $id = 'configurableOptionUnitSection';
- protected $name = 'configurableOptionUnitSection';
- protected $title = 'configurableOptionUnitSection';
- /**
- * @var HalfPageSection
- */
- private $leftSection;
- /**
- * @var HalfPageSection
- */
- private $rightSection;
- public function initContent()
- {
- $this->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);
- }
- }
|