| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace ModulesGarden\Servers\ProxmoxCloudVps\App\UI\Admin\Product\Sections\Qemu;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\AdminArea;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Fields\Text;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\BoxSection;
- use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\HalfPageSection;
- class AdditonalDiskSpeedSection extends BoxSection implements AdminArea
- {
- protected $id = 'additonalDiskSpeedSection';
- protected $name = 'additonalDiskSpeedSection';
- protected $title = 'additonalDiskSpeedSection';
- /**
- * @var HalfPageSection
- */
- private $leftSection;
- /**
- * @var HalfPageSection
- */
- private $rightSection;
- public function initContent()
- {
- $this->leftSection = new HalfPageSection('leftSection');
- $this->rightSection = new HalfPageSection('rightSection');
- $this->addSection($this->leftSection)
- ->addSection($this->rightSection);
- $this->initFields();
- }
- private function initFields()
- {
- //Read Limit (MB/s)
- $field = new Text('customconfigoption[additionalDiskMbps_rd]');
- $field->setDescription('tip');
- $this->leftSection->addField($field);
- //Write Limit (MB/s)
- $field = new Text('customconfigoption[additionalDiskMbps_wr]');
- $field->setDescription('tip');
- $this->rightSection->addField($field);
- //Read Limit (ops/s)
- $field = new Text('customconfigoption[additionalDiskIops_rd]');
- $field->setDescription('tip');
- $this->leftSection->addField($field);
- //Read Max Burst (ops)
- $field = new Text('customconfigoption[additionalDiskIops_rd_max]');
- $field->setDescription('tip');
- $this->rightSection->addField($field);
- //Write Limit (ops/s)
- $field = new Text('customconfigoption[additionalDiskIops_wr]');
- $field->setDescription('tip');
- $this->leftSection->addField($field);
- //Write Max Burst (ops)
- $field = new Text('customconfigoption[additionalDiskIops_wr_max]');
- $field->setDescription('tip');
- $this->rightSection->addField($field);
- }
- }
|