Sha256: be9b41471332077235e4e95d2347b95f100420423c15920e83bdcbf372076779

Contents?: true

Size: 994 Bytes

Versions: 5

Compression:

Stored size: 994 Bytes

Contents

<div class="fields">
  <div class="control-group">
  <% if f.object._delete != '1' -%>
    <% disabled = !f.object.id.blank? %>
    <%= text_f f,:size_gb, :label => _('Size (GB)'), :disabled => disabled, :class => "span2" %>
    <%= f.hidden_field :size_gb if disabled %>
    <%= select_f f, :storage_domain, compute_resource.storage_domains, :id, :name,
                 { }, :label => _('Storage Domain'), :disabled => disabled, :class => "span2",
                 :help_inline=> remove_child_link("X", f, { :method => :'_delete', :title => _('remove volume'), :class => 'label label-important' }) %>
    <%= f.hidden_field :storage_domain if disabled %>
    <%= f.hidden_field :id %>
    <%= field(f, :bootable, :label => _('Bootable')) do
        radio_button_f f, :bootable, {:disabled => disabled, :value=>'true', :checked => (f.object.bootable == 'true'), :onclick => 'bootable_radio(this)',
        :text => _('Only one volume can be Bootable')}
    end %>
  <% end -%>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/compute_resources_vms/form/ovirt/_volume.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/compute_resources_vms/form/ovirt/_volume.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/compute_resources_vms/form/ovirt/_volume.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/compute_resources_vms/form/ovirt/_volume.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/compute_resources_vms/form/ovirt/_volume.html.erb