foreman/app/views/compute_resources/form/_ovirt.html.erb @ 9557f30c
9557f30c | Dmitri Dolguikh | <%= text_f f, :url, :size => "col-md-8", :help_block => _("e.g. https://ovirt.example.com/api") %>
|
|
74e0b0e3 | Lukas Zapletal | <%= text_f f, :user, :help_block => _("e.g. admin@internal") %>
|
|
3595a70c | Joseph Mitchell Magen | <%= password_f f, :password %>
|
|
334d0359 | Amos Benari | <% datacenters = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.datacenters rescue []%>
|
|
93117958 | Bryan Kearney | <%= selectable_f(f, :uuid, datacenters, {}, {:label => _('Datacenter'),
|
|
180d7f43 | Jason Montleon | :onchange => 'ovirt_datacenterSelected();',
|
|
93117958 | Bryan Kearney | :help_inline => link_to_function(datacenters.empty? ? _("Load Datacenters") : _("Test Connection"), "testConnection(this)",
|
|
180d7f43 | Jason Montleon | :id => 'test_connection_button',
|
|
bf4a13d3 | Walden Raines | :class => "btn + #{datacenters.empty? ? "btn-default" : "btn-success"}",
|
|
feacea35 | Amos Benari | :'data-url' => test_connection_compute_resources_path) + image_tag('/assets/spinner.gif', :id => 'test_connection_indicator', :class => 'hide').html_safe }) %>
|
|
2e66b04a | Amos Benari | <% quotas = (f.object.uuid.nil? && controller.action_name != 'test_connection') ? [] : f.object.quotas.all rescue []%>
|
|
180d7f43 | Jason Montleon | <%= select_f f, :ovirt_quota, quotas, :id, :name, {}, :label => _("Quota ID") %>
|
|
5f45920e | Amos Benari | <%= textarea_f f, :public_key, :disabled => true, :label => _("CA Certificate"), :size => "col-md-8" %>
|
|
<%= f.hidden_field(:public_key) if f.object.uuid.present? %>
|