فهرست منبع

try to fix the detailed view

andre 4 سال پیش
والد
کامیت
3b0bda8b3f
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 4 0
      app/UI/VirtualNetwork/Pages/VirtualNetworkDataTable.php
  2. 3 1
      app/UI/VmUpdate/Forms/VmUpdateForm.php

+ 4 - 0
app/UI/VirtualNetwork/Pages/VirtualNetworkDataTable.php

@@ -77,6 +77,10 @@ class VirtualNetworkDataTable extends DataTable implements ClientArea
         return "-";
     }
 
+    public function loadDataToForm() {
+
+    }
+
     protected function loadData()
     {
         $query    = VirtualNetwork::select("id", "name", "pool", "cidr", "gateway")

+ 3 - 1
app/UI/VmUpdate/Forms/VmUpdateForm.php

@@ -12,6 +12,8 @@ use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\ClientArea;
 use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\BaseStandaloneFormExtSections;
 use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Forms\Sections\HalfPageSection;
 use ModulesGarden\Servers\ProxmoxCloudVps\App\UI\Disk\Pages\DiskDataTable;
+use ModulesGarden\Servers\ProxmoxCloudVps\App\UI\VirtualNetwork\Pages\VirtualNetworkDataTable;
+
 
 class VmUpdateForm extends  BaseStandaloneFormExtSections implements ClientArea
 {
@@ -38,7 +40,7 @@ class VmUpdateForm extends  BaseStandaloneFormExtSections implements ClientArea
             $rightSection = new HalfPageSection('rightSection');
             $rightSection->setMainContainer($this->mainContainer);
             //network
-            $rightSection->addSection((new VirtualNetworkSection())->setMainContainer($this->mainContainer));
+            $rightSection->addSection((new VirtualNetworkDataTable())->setMainContainer($this->mainContainer));
             //kvm
             if($this->configuration()->isQemu()){
                 $this->addSection((new Qemu\GeneralCombinedSection())->setMainContainer($this->mainContainer));