Project

General

Profile

Download (995 Bytes) Statistics
| Branch: | Tag: | Revision:
<div class="fields">
<div class="form-group">
<% if f.object._delete != '1' %>
<% disabled = !f.object.id.blank? %>
<%= text_f f,:size_gb, :label => _('Size (GB)'), :disabled => disabled, :class => "col-md-2" %>
<%= f.hidden_field :size_gb if disabled %>
<%= select_f f, :storage_domain, compute_resource.storage_domains, :id, :name,
{ }, :label => _('Storage domain'), :disabled => disabled, :class => "col-md-2",
: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>
(2-2/2)