Project

General

Profile

Download (2.16 KB) Statistics
| Branch: | Tag: | Revision:
<div class="fields">
<div id='templates' class=''>
<div class="form-group">
<%= selectable_f_with_cache_invalidation f,
:custom_template_name,
[[_("No template"), ""]] + xen_custom_template_map(compute_resource),
{ :selected => attribute_map[:template_selected_custom] },
{ :class => 'form-control span2',
:label => 'Custom Template'
},
{
:callback => 'xenPopulateCustomTemplates',
:title => 'Refresh available custom templates',
:url => '/foreman_xen/cache/refresh',
:computer_resource_id => compute_resource.id,
:attribute => 'custom_templates'
}
%>
</div>

<div class="form-group ">
<%= selectable_f_with_cache_invalidation f,
:builtin_template_name,
[[_("No template"), ""]] + xen_builtin_template_map(compute_resource),
{ :selected => attribute_map[:template_selected_builtin] },
{ :class => 'form-control span2',
:label => 'Builtin Template'
},
{
:callback => 'xenPopulateBuiltinTemplates',
:title => 'Refresh available builtin templates',
:url => '/foreman_xen/cache/refresh',
:computer_resource_id => compute_resource.id,
:attribute => 'builtin_templates'
}
%>
</div>
</div>
</div>
(3-3/5)