From 5dea65590299b1187e88e333b8b8782c53e5cac9 Mon Sep 17 00:00:00 2001 From: Nadja Heitmann Date: Wed, 6 Nov 2024 13:24:26 +0100 Subject: [PATCH] fix: Readd storage to host's compute details (#373) --- .../form/update_react_component_to_host_form.rb | 3 ++- .../form/proxmox/_update_react_component_to_host_form.html.erb | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/overrides/compute_resources_vms/form/update_react_component_to_host_form.rb b/app/overrides/compute_resources_vms/form/update_react_component_to_host_form.rb index 50a986554..fccf8f967 100644 --- a/app/overrides/compute_resources_vms/form/update_react_component_to_host_form.rb +++ b/app/overrides/compute_resources_vms/form/update_react_component_to_host_form.rb @@ -21,5 +21,6 @@ :virtual_path => 'hosts/_compute', :name => 'update_react_component_to_virtual_machine_tab', :replace => "erb[loud]:contains('hosts/compute_detail')", - :partial => 'compute_resources_vms/form/proxmox/update_react_component_to_host_form' + :partial => 'compute_resources_vms/form/proxmox/update_react_component_to_host_form', + :original => 'c71aceb245363af92515509d25cac0c066bd58ed' ) diff --git a/app/views/compute_resources_vms/form/proxmox/_update_react_component_to_host_form.html.erb b/app/views/compute_resources_vms/form/proxmox/_update_react_component_to_host_form.html.erb index f0c13d3cf..68b0077bf 100644 --- a/app/views/compute_resources_vms/form/proxmox/_update_react_component_to_host_form.html.erb +++ b/app/views/compute_resources_vms/form/proxmox/_update_react_component_to_host_form.html.erb @@ -23,4 +23,7 @@ along with ForemanFogProxmox. If not, see . %> <%= render :partial => provider_partial(compute_resource, 'base'), locals: { f: compute, host: host, compute_resource: compute_resource, new_host: host.new_record?, new_vm: !compute.object.persisted?, arch: host.architecture_id, os: host.operatingsystem_id } %> + + +<%= render :partial => 'compute_resources_vms/form/volumes', :locals => { :f => compute, :compute_resource => compute_resource, :new_host => !compute.object.persisted?, :new_vm => !compute.object.persisted?, :item_layout => 'removable' } %> <% end %>