Sha256: fa96763265a18b6901dd09febec27fd0f0ad7eaea27422c41cb61b5b13f0f3bd

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

<% if f.object.type.nil? || f.object.type == 'persistentVolumeClaim' %>
  <% if @set %>
    <% @set.errors[:vm_attrs].each do | error| %>
      <%= alert :class => 'alert-danger', :header => '', :text => error %>
    <% end %>
  <% end %>
  <% storage_classes = compute_resource.storage_classes %>
  <%= select_f f, :storage_class,
                  compute_resource.storage_classes_for_select,
                  :id,
                  :description,
                  { },
                  :label => _('Storage Class'),
                  :label_size => "col-md-2",
                  :disabled => !new_vm,
                  :class => "col-md-2" %>
  <%= text_f f,:capacity, :label => _('Size (GB)'), :label_size => "col-md-2", :disabled => !new_vm, :class => "col-md-2 pvc-size" %>

  <% bootable = f.object.boot_order.nil? ? false : f.object.bootable %>
  <%= field(f, :bootable, :label => _('Bootable'), :label_size => "col-md-2") do
    radio_button_f f, :bootable, {:disabled => !new_vm, :value=> 'true', :checked => bootable, :onclick => 'bootableRadio(this)',
    :text => _('Only one volume can be bootable')}
  end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_kubevirt-0.2.0 app/views/compute_resources_vms/form/kubevirt/_volume.html.erb
foreman_kubevirt-0.1.9 app/views/compute_resources_vms/form/kubevirt/_volume.html.erb
foreman_kubevirt-0.1.8 app/views/compute_resources_vms/form/kubevirt/_volume.html.erb
foreman_kubevirt-0.1.7 app/views/compute_resources_vms/form/kubevirt/_volume.html.erb
foreman_kubevirt-0.1.5 app/views/compute_resources_vms/form/kubevirt/_volume.html.erb