Sha256: 7d52b576b2646683f4e2ddba89f7b64b3ae00a1cff6a427979a2d57c10fe7037

Contents?: true

Size: 883 Bytes

Versions: 7

Compression:

Stored size: 883 Bytes

Contents

<div class="fields">
  <%
     selected_item_c = ''
     selected_item_b = ''
     if params && params['host'] && params['host']['compute_attributes']
       selected_item_c = params['host']['compute_attributes']['custom_template_name']
       selected_item_b = params['host']['compute_attributes']['builtin_template_name']
     end
  %>

  <div id='templates' class=''>
    <div class="form-group">
      <%= selectable_f f, :custom_template_name,[[_("No template"), ""]] + compute_resource.custom_templates.map { |t| [t.name, t.name] }, {}, :class => 'form-control span2', :label => 'Custom Template' %>
    </div>

    <div class="form-group ">
      <%= selectable_f f, :builtin_template_name,[[_("No template"), ""]] + compute_resource.builtin_templates.map { |t| [t.name, t.name] }, {}, :class => 'form-control span2', :label => 'Builtin Template' %>
    </div>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_xen-0.1.2 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.1.1 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.1.0 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.0.6 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.0.5.1 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.0.5 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.0.4.1 app/views/compute_resources_vms/form/_templates.html.erb