|
<%= include_javascript %>
|
|
<% title _("Provisioning Templates") %>
|
|
|
|
<% title_actions display_link_if_authorized(_("New Template"), hash_for_new_config_template_path),
|
|
display_link_if_authorized(_("Build PXE Default"), {:action => :build_pxe_default},{
|
|
:confirm => _("You Are about to change the default PXE menu on all configured TFTP servers - continue ?"),
|
|
:class => "btn btn-info"})
|
|
%>
|
|
|
|
<table class="table table-bordered table-striped table-two-pane">
|
|
<tr>
|
|
<tr>
|
|
<th><%= sort :name, :as => s_("ConfigTemplate|Name") %></th>
|
|
<th><%= _("Host group / Environment") %></th>
|
|
<th><%= sort :kind, :as => _("Kind") %></th>
|
|
<th><%= sort :snippet, :as => s_("ConfigTemplate|Snippet") %></th>
|
|
<th></th>
|
|
</tr>
|
|
<% for config_template in @config_templates %>
|
|
<tr>
|
|
<td><%= link_to_if_authorized h(config_template), hash_for_edit_config_template_path(:id => config_template.to_param).merge(:auth_object => config_template, :authorizer => authorizer, :permission => 'edit_templates') %></td>
|
|
<td><%= combination config_template %></td>
|
|
<td><%= config_template.try(:template_kind) %></td>
|
|
<td><%= checked_icon config_template.snippet %></td>
|
|
<td><%= display_delete_if_authorized hash_for_config_template_path(:id => config_template.to_param).merge(:auth_object => config_template, :authorizer => authorizer, :permission => 'destroy_templates'),
|
|
:confirm => _("Delete %s?") % config_template %> </td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<%= page_entries_info @config_templates %>
|
|
<%= will_paginate @config_templates %>
|