Sha256: 68ce41b8058379f84bfd2e8ddc440c0890f96c21f1018b90e50b825e8191312a

Contents?: true

Size: 1.43 KB

Versions: 2

Compression:

Stored size: 1.43 KB

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">
   <label class="col-md-2 control-label" for="host_compute_attributes_custom_template_name">Custom template</label>
   <div class="col-md-4">
    <div class="controls">
      <select class="form-control span2" id="host_compute_attributes_custom_template_name" name="host[compute_attributes][custom_template_name]">
        <%= options_for_select([[_("No template"), ""]] + compute_resource.custom_templates.map { |t| [t.name, t.name] }, selected_item_c) %>
      </select>
    </div>
   </div>  
  </div>

    <div class="form-group ">
    <label class="col-md-2 control-label" for="host_compute_attributes_builtin_template_name">Built-in template</label>
    <div class="col-md-4">
    <div class="controls">
      <select class="form-control span2" id="host_compute_attributes_builtin_template_name" name="host[compute_attributes][builtin_template_name]">
        <%= options_for_select([[_("No template"), ""]] + compute_resource.builtin_templates.map { |t| [t.name, t.name] }, selected_item_b) %>
      </select>
    </div>
    </div>
    </div>

  </div>

</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_xen-0.0.3 app/views/compute_resources_vms/form/_templates.html.erb
foreman_xen-0.0.2 app/views/compute_resources_vms/form/_templates.html.erb