foreman/app/views/puppetclass_lookup_keys/index.html.erb @ 6b4b489f
d31eea8c | Amos Benari | <%= javascript "lookup_keys" %>
|
|
6b4b489f | Ori Rabin | <% title _("Smart class parameters") %>
|
|
<% title_actions documentation_button('4.2.5ParameterizedClasses') %>
|
|||
22a48ce1 | Amos Benari | <table class="table table-bordered table-striped table-two-pane">
|
|
e77dd577 | Shimon Shtein | <thead>
|
|
<tr>
|
|||
6b4b489f | Ori Rabin | <th><%= sort :key, :as => _("Parameter") %></th>
|
|
e77dd577 | Shimon Shtein | <th><%= sort :puppetclass, :as => _("Puppetclass") %></th>
|
|
<th><%= sort :values_count, :as => _('Number of values'), :default => "DESC" %></th>
|
|||
<th></th>
|
|||
</tr>
|
|||
</thead>
|
|||
<tbody>
|
|||
<% @lookup_keys.each do |lookup_key| %>
|
|||
<tr>
|
|||
6b4b489f | Ori Rabin | <td class="display-two-pane"><%= link_to_if_authorized trunc_with_tooltip(lookup_key.key), hash_for_edit_puppetclass_lookup_key_path(:id => lookup_key).merge(:auth_object => lookup_key, :permission => 'edit_external_variables', :authorizer => authorizer) %></td>
|
|
e77dd577 | Shimon Shtein | <% puppet_class = lookup_key.param_class %>
|
|
6b4b489f | Ori Rabin | <td><%= link_to_if_authorized trunc_with_tooltip(puppet_class), hash_for_edit_puppetclass_path(:id => puppet_class).merge(:auth_object => puppet_class, :authorizer => @puppetclass_authorizer) if puppet_class %></td>
|
|
e77dd577 | Shimon Shtein | <td><%=h lookup_key.lookup_values_count %></td>
|
|
<td><%= display_delete_if_authorized hash_for_lookup_key_path(:id => lookup_key).merge(:auth_object => lookup_key, :permission => 'destroy_external_variables', :authorizer => authorizer),
|
|||
4f211508 | Daniel Lobato | :data => { :confirm => _("Delete %s?") % lookup_key.key } %></td>
|
|
e77dd577 | Shimon Shtein | </tr>
|
|
<% end %>
|
|||
</tbody>
|
|||
0265427b | Ohad Levy | </table>
|
|
a783d2c8 | ripcurld00d | <%= will_paginate_with_info @lookup_keys %>
|