Project

General

Profile

« Previous | Next » 

Revision 1f71c494

Added by Tomer Brisker over 8 years ago

Fixes #12204 - Show interface form helptext in popovers

Refs #12204 - Resize interface modal, fields and labels

To cause virtual network settings to display correcty changes were also needed
in the layout of the compute attribute forms.

View differences:

app/views/compute_resources_vms/form/ovirt/_volume.html.erb
<%= text_f f,:size_gb, :label => _('Size (GB)'), :disabled => !new_host, :class => "col-md-2" %>
<%= text_f f,:size_gb, :label => _('Size (GB)'), :label_size => "col-md-3", :disabled => !new_host, :class => "col-md-2" %>
<%= f.hidden_field :size_gb if !new_host %>
<%= select_f f, :storage_domain, compute_resource.storage_domains, :id, :name,
{ }, :label => _('Storage domain'), :disabled => !new_host, :class => "col-md-2 without_select2" %>
{ }, :label => _('Storage domain'), :label_size => "col-md-3", :disabled => !new_host, :class => "col-md-2 without_select2" %>
<%= f.hidden_field :storage_domain if !new_host %>
<%= f.hidden_field :id %>
<%= checkbox_f f, :preallocate, { :checked => false, :help_inline => _('Uses thin provisioning if unchecked'), :label => _('Preallocate disk') } %>
<%= checkbox_f f, :preallocate, { :checked => false, :help_inline => _('Uses thin provisioning if unchecked'), :label => _('Preallocate disk'), :label_size => "col-md-3" } %>
<%= field(f, :bootable, :label => _('Bootable')) do
<%= field(f, :bootable, :label => _('Bootable'), :label_size => "col-md-3") do
radio_button_f f, :bootable, {:disabled => !new_host, :value=>'true', :checked => (f.object.bootable == 'true'), :onclick => 'bootable_radio(this)',
:text => _('Only one volume can be bootable')}
end %>

Also available in: Unified diff