Sha256: 905dc34cb873552afd790ce2289e4f67851bd71e7887a1d444a931ac487f7477

Contents?: true

Size: 668 Bytes

Versions: 2

Compression:

Stored size: 668 Bytes

Contents

<%= selectable_f_with_cache_invalidation f, :sr,
      options_from_collection_for_select(
        compute_resource.storage_pools, :uuid, :display_name, (f.object.sr.uuid rescue nil)
      ),
      {},
      { class: 'span2',
        label: _("Storage Repository") },
      { title: 'Refresh available storage repositories',
        url: url_for(controller: "foreman_xen/cache",
                     action: "refresh", only_path: true),
        compute_resource_id: compute_resource.id,
        attribute: 'storage_pools' }
%>

<%= text_f f, :virtual_size_gb, :class => "input-mini", :label => _("Size (GB)"), :value => (f.object.virtual_size.to_i / 1_073_741_824) %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_xen-1.0.1 app/views/compute_resources_vms/form/xenserver/_volume.html.erb
foreman_xen-1.0.0 app/views/compute_resources_vms/form/xenserver/_volume.html.erb