Sha256: 02ee62dbb10d760933fe0e88782e66b9e893b4d047ab81f385b24d16d0726472

Contents?: true

Size: 761 Bytes

Versions: 3

Compression:

Stored size: 761 Bytes

Contents

<div class="fields">
  <%
     selected = ""
     size = ""

     if params['host']      
		 if params && params['host'] && params['host']['compute_attributes'] && params['host']['compute_attributes']['VBDs']['physical_size'] != ""
		   selected = params['host']['compute_attributes']['VBDs']['print']
		   size     = params['host']['compute_attributes']['VBDs']['physical_size']
		 elsif new.__vbds
		   selected = new.__vbds['print']
		   size     = new.__vbds['physical_size']
		 end
	end
  -%>
  <%= selectable_f f, :print, compute_resource.storage_pools.map(&:name), { :selected => selected }, :class => "span2", :label => _("Storage Repository") %>
  <%= text_f f, :physical_size, :class => "input-mini", :label => _("Size (GB)"), :value => size %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_xen-0.1.0 app/views/compute_resources_vms/form/_volume.html.erb
foreman_xen-0.0.6 app/views/compute_resources_vms/form/_volume.html.erb
foreman_xen-0.0.5.1 app/views/compute_resources_vms/form/_volume.html.erb