|
<%= text_f f, :url, :size => "col-md-8", :help_block => _("e.g. qemu://host.example.com/system") %>
|
|
|
|
<%= select_f f, :display_type, %w[VNC SPICE],:upcase, :to_s, { }, :label => _("Display type") %>
|
|
<%= checkbox_f f, :set_console_password, :checked => f.object.set_console_password?,
|
|
:label => _("Console passwords"),
|
|
:help_inline => _("Set a randomly generated password on the display connection") %>
|
|
|
|
<% hypervisor = f.object.hypervisor.uuid rescue nil%>
|
|
<% if hypervisor %>
|
|
<%= f.hidden_field :uuid, :value => hypervisor %>
|
|
<% end %>
|
|
<%= link_to_function _("Test Connection"), "testConnection(this)", :class => "btn + #{hypervisor.nil? ? "btn-default" : "btn-success"}", :'data-url' => test_connection_compute_resources_path %>
|
|
|
|
<%= image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide') %>
|