Sha256: 72e66ea397b1fd0552d5b908fb8f9fc3b510973a3507779db3653bc9fddf05cf
Contents?: true
Size: 1.78 KB
Versions: 26
Compression:
Stored size: 1.78 KB
Contents
<%# Copyright 2018 Tristan Robert This file is part of ForemanFogProxmox. ForemanFogProxmox is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ForemanFogProxmox is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %> <% if compute_resource.class == ForemanFogProxmox::Proxmox %> <% vm_type = f.object.respond_to?('type') ? f.object.type : nil %> <% node_id = f.object.respond_to?('node_id') ? f.object.node_id : nil %> <%= new_child_fields_template(f, compute_resource.interfaces_attrs_name, { :object => compute_resource.new_interface, :partial => provider_partial(compute_resource, 'network'), :form_builder_attrs => { :vm_type => vm_type, :node_id => node_id, :compute_resource => compute_resource, :new_host => new_host, :new_vm => new_vm, :remove_title => _('remove network interface') }, :layout => 'compute_resources_vms/form/deletable_layout' }) %> <% else %> <%= new_child_fields_template(f, compute_resource.interfaces_attrs_name, { :object => compute_resource.new_interface, :partial => provider_partial(compute_resource, 'network'), :form_builder_attrs => { :compute_resource => compute_resource, :new_host => new_host, :new_vm => new_vm, :remove_title => _('remove network interface') }, :layout => 'compute_resources_vms/form/deletable_layout' }) %> <% end %>
Version data entries
26 entries across 26 versions & 1 rubygems