Sha256: 55f89278eedf58c19cffd5cc24a56ca2f5ca0a5ce2c47d684b6c7622923b27f8

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 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/>. %>

<% vm_type = f.object.respond_to?('type') ? f.object.type : nil %>
<% logger.debug("vm_type=#{vm_type}") %>

<%= 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, :compute_resource => compute_resource, :new_host => new_host, :new_vm => new_vm, :remove_title => _('remove network interface') },
        :layout => 'compute_resources_vms/form/deletable_layout' }) %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_fog_proxmox-0.7.0 app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb
foreman_fog_proxmox-0.6.0 app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb