Sha256: a278f93c334dcd8c9b805290d6159bc69eb66a566f8518a5fb17e4d66bb3039c

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 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=''>
    <label class="control-label" for="host_compute_attributes_custom_template_name">Custom template</label>

    <div class="controls">
      <select class="input-xlarge" 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>

    <label class="control-label" for="host_compute_attributes_builtin_template_name">Built-in template</label>

    <div class="controls">
      <select class="input-xlarge" 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>

Version data entries

1 entries across 1 versions & 1 rubygems

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