|
@@ -125,19 +125,12 @@ class GeneralSection extends BaseSection
|
|
|
$this->addField($field);
|
|
$this->addField($field);
|
|
|
if($this->configuration()->isDetailsCombinedView()){
|
|
if($this->configuration()->isDetailsCombinedView()){
|
|
|
//disk
|
|
//disk
|
|
|
- $field = new Text('disk');
|
|
|
|
|
- $field->addValidator(new NumberValidator($this->resourceManager->disk()->getMin(), $this->resourceManager->disk()->free(),true));
|
|
|
|
|
|
|
+ $field = new Range('disk', $vm->getMasterHddSize(), $this->resourceManager->disk()->free());
|
|
|
|
|
+ $field->addValidator(new NumberValidator($vm->getMasterHddSize(), $this->resourceManager->disk()->free(),true));
|
|
|
|
|
+ $field->setDefaultValue($vm->getMasterHddSize());
|
|
|
$field->setDescription('description');
|
|
$field->setDescription('description');
|
|
|
|
|
+ $field->addHtmlAttribute('@change','submitFormByField($event)');
|
|
|
$this->addField($field);
|
|
$this->addField($field);
|
|
|
-
|
|
|
|
|
- logModuleCall(
|
|
|
|
|
- 'proxmoxCloud',
|
|
|
|
|
- __FUNCTION__,
|
|
|
|
|
- $field,
|
|
|
|
|
- 'Debug',
|
|
|
|
|
- $vm->getMasterHddSize()
|
|
|
|
|
- );
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
/**
|
|
/**
|
|
|
* @deprecated
|
|
* @deprecated
|