Explorar el Código

change test to slider for disk create

andre hace 4 años
padre
commit
33f437bb08
Se han modificado 1 ficheros con 6 adiciones y 5 borrados
  1. 6 5
      app/UI/Disk/Forms/UpdateForm.php

+ 6 - 5
app/UI/Disk/Forms/UpdateForm.php

@@ -35,14 +35,10 @@ use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Fields\Range;
 class UpdateForm extends BaseForm implements ClientArea
 class UpdateForm extends BaseForm implements ClientArea
 {
 {
     use ProductService;
     use ProductService;
+    protected $minSize = 0;
 
 
     public function initContent()
     public function initContent()
     {
     {
-        $this->initIds('updateDiskForm');
-        $this->setFormType('update');
-        $this->setProvider(new DiskProvider());
-        $this->initFields();
-        $this->loadDataToForm();
 
 
         logModuleCall(
         logModuleCall(
             'proxmoxCloud',
             'proxmoxCloud',
@@ -52,6 +48,11 @@ class UpdateForm extends BaseForm implements ClientArea
             parent::getFormData()['size']
             parent::getFormData()['size']
         );
         );
 
 
+        $this->initIds('updateDiskForm');
+        $this->setFormType('update');
+        $this->setProvider(new DiskProvider());
+        $this->initFields();
+        $this->loadDataToForm();
     }
     }
 
 
     public function getAllowedActions()
     public function getAllowedActions()