Project

General

Profile

« Previous | Next » 

Revision cbc6ac08

Added by Dominic Cleal about 8 years ago

fixes #14202 - enable select2 in interfaces modal

Reverts commit 44723b9 and re-enables select2 in the interfaces modal,
instead fixing the issue with the NIC table detail lines to read the
network information out of select2 dropdown menus correctly.

View differences:

app/views/compute_resources_vms/form/ovirt/_network.html.erb
<%= text_f f, :name, :disabled => !new_host, :class => "ovirt_name", :label => _('Name'), :label_size => "col-md-3" %>
<% selected_cluster ||= compute_resource.clusters.first.id %>
<%= select_f f, :network, compute_resource.networks(selected_cluster ? { :cluster_id => selected_cluster } : { }), :id, :name,
{ }, :disabled => !new_host, :class => "ovirt_network without_select2",
{ }, :disabled => !new_host, :class => "ovirt_network",
:label => _('Network'), :label_size => "col-md-3" %>

Also available in: Unified diff