Sha256: 923bda22e72f6b7c3185727fa98cca4e7c7e4ce96e24b71ef87cc6ac1e78a316

Contents?: true

Size: 800 Bytes

Versions: 2

Compression:

Stored size: 800 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, :sr_uuid, compute_resource.storage_pools.map{ |item| [item[:display_name], item[:uuid]]}, { :selected => selected }, :class => "span2", :label => _("Storage Repository") %>

  <%= text_f f, :physical_size, :class => "input-mini", :label => _("Size (GB)"), :value => size %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_xen-0.1.2 app/views/compute_resources_vms/form/_volume.html.erb
foreman_xen-0.1.1 app/views/compute_resources_vms/form/_volume.html.erb