foreman/app/views/common_parameters/index.html.erb @ 82e47ae0
01984fb7 | Amos Benari | <% title "Global Parameters" %>
|
|
fa7070ca | Ohad Levy | ||
05ab4c16 | Ohad Levy | <% title_actions display_link_if_authorized("New Parameter", hash_for_new_common_parameter_path) %>
|
|
cdf02336 | Ohad Levy | ||
82e47ae0 | Amos Benari | <table class="table table-bordered table-striped">
|
|
fa7070ca | Ohad Levy | <tr>
|
|
8104eced | Ohad Levy | <th><%= sort :name %></th>
|
|
<th><%= sort :value %></th>
|
|||
2e04e41b | Ohad Levy | <th></th>
|
|
fa7070ca | Ohad Levy | </tr>
|
|
<% for common_parameter in @common_parameters %>
|
|||
9fd7478e | Paul Kelly | <tr class="<%= cycle("even", "odd") -%>" >
|
|
<td><%= link_to_if_authorized h(common_parameter), hash_for_edit_common_parameter_path(:id => common_parameter.id)%></td>
|
|||
fa7070ca | Ohad Levy | <td><%=h common_parameter.value %></td>
|
|
4ebe38c7 | Ohad Levy | <td class="ra">
|
|
82e47ae0 | Amos Benari | <%= display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter), :confirm => "Delete #{common_parameter.name}?" %>
|
|
d995ecb4 | Paul Kelly | </td>
|
|
fa7070ca | Ohad Levy | </tr>
|
|
<% end %>
|
|||
</table>
|
|||
d995ecb4 | Paul Kelly | <%= page_entries_info @common_parameters %>
|
|
<%= will_paginate @common_parameters %>
|