Sha256: a840afacd2a1c4d0dcf58b82c497e0e990cb4602f8ab92efc9c2a9a93a8447d5

Contents?: true

Size: 970 Bytes

Versions: 2

Compression:

Stored size: 970 Bytes

Contents

<!-- VM Template -->
<div class="network_fields" style="display:none">
  <div id="vm_template_selection">
    <%= selectable_f_with_cache_invalidation(f, :builtin_template,
          options_from_collection_for_select(
            compute_resource.builtin_templates, :uuid, :name
          ),
          { selected: nil, #TODO
            prompt: 'No Template'},
          { class: 'span2', label: 'VM Template' },
          { title: 'Refresh available builtin templates',
            url: url_for(controller: "foreman_xen/cache",
                         action: "refresh", only_path: true),
            compute_resource_id: compute_resource.id,
            attribute: 'builtin_templates' }
         ) %>
  </div>
</div>
<%= javascript_tag("
$(document).ready(function(){
  if (!$('#network_provisioning').has('#vm_template_selection').length) {
    $('#vm_template_selection').appendTo($('#network_provisioning'));
    $('#vm_template_selection').show();
  }
});
") %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_xen-1.0.1 app/views/compute_resources_vms/form/_network_provisioning.html.erb
foreman_xen-1.0.0 app/views/compute_resources_vms/form/_network_provisioning.html.erb