|
|
@@ -125,9 +125,8 @@ class GeneralSection extends BaseSection
|
|
|
$this->addField($field);
|
|
|
if($this->configuration()->isDetailsCombinedView()){
|
|
|
//disk
|
|
|
- $field = new Range('rootDisk', $vm->getMasterHddSize(), $this->resourceManager->disk()->free());
|
|
|
- $field->addValidator(new DiskSizeValidator('rootDisk',true));
|
|
|
- $field->setDefaultValue($vm->getMasterHddSize());
|
|
|
+ $field = new Text('disk');
|
|
|
+ $field->addValidator(new NumberValidator($this->resourceManager->disk()->getMin(), $this->resourceManager->disk()->free(),true));
|
|
|
$field->setDescription('description');
|
|
|
$this->addField($field);
|
|
|
}
|