|
<% title "Global Parameters" %>
|
|
|
|
<% title_actions display_link_if_authorized("New Parameter", hash_for_new_common_parameter_path) %>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
<tr>
|
|
<th><%= sort :name %></th>
|
|
<th><%= sort :value %></th>
|
|
<th></th>
|
|
</tr>
|
|
<% for common_parameter in @common_parameters %>
|
|
<tr class="<%= cycle("even", "odd") -%>" >
|
|
<td><%= link_to_if_authorized h(common_parameter), hash_for_edit_common_parameter_path(:id => common_parameter.id)%></td>
|
|
<td><%=h common_parameter.value %></td>
|
|
<td class="ra">
|
|
<%= display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter), :confirm => "Delete #{common_parameter.name}?" %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
<%= page_entries_info @common_parameters %>
|
|
<%= will_paginate @common_parameters %>
|