Displaying 2 results from an estimated 2 matches for "vm_network_config_select_".
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...network_config_row_<%= i %>" class="vm_network_config_row"
+ <% if i != 0 %>style="display: none;"<%end%> >
+
+ <div class="vm_network_config_net">
+ <select name="networks[]" id="vm_network_config_select_<%= i %>" class="vm_network_config_select">
+ <option value="">None</option>
+ <% @nics.each { |nic| %>
+ <option value="<%= nic.network_id %>"><%= nic.network.name %>...
2009 Aug 04
3
[PATCH server] require at least one vm network if pxe booting
...label for="vm_nics" /></div>
+
<% if @nics.size > 0 %>
<div id="vm_network_config_header">
<div id="vm_network_config_header_network">Network:</div>
@@ -313,5 +316,25 @@ ${htmlList(pools, id)}
$('#vm_network_config_select_<%= i %>').val("<%= @vm.nics[i].network_id %>").trigger('change');
<% }
end %>
+
+ // wire up provision select box to autoselect a network if necessary
+ $('#vm_provisioning_and_boot_settings').bind('change', functio...