Project

General

Profile

« Previous | Next » 

Revision f9a77319

Added by Amos Benari over 10 years ago

fixes #3338 - grey out VM form when editing is not supported

View differences:

app/views/compute_resources_vms/form/libvirt/_volume.html.erb
<%= selectable_f f, :pool_name, compute_resource.storage_pools.map(&:name), { }, :class => "span2", :label => _("Storage Pool") %>
<%= text_f f, :capacity, :class => "input-mini", :label => _("Size (GB)") %>
<%= select_f f, :format_type, %w[RAW QCOW2],:downcase, :to_s, { }, :class => "span2", :label => _("Type"),
:help_inline => remove_child_link("X", f, { :method => :'_delete', :title => _('remove network interface'), :class => 'label label-important' }) %>
:help_inline => remove_child_link("X", f, { :method => :'_delete', :title => _('remove network interface'), :class => 'label label-important disable-unsupported' }) %>
</div>

Also available in: Unified diff