Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/common_parameters/index.html.erb
<% title_actions display_link_if_authorized("New Parameter", hash_for_new_common_parameter_path) %>
<table class="list">
<table class="table table-bordered table-striped">
<tr>
<th><%= sort :name %></th>
<th><%= sort :value %></th>
......
<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_link_if_authorized "Delete", hash_for_common_parameter_path(:id => common_parameter, :auth_action => :destroy), :confirm => "Delete #{common_parameter.name}?", :method => :delete %>
<%= display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter), :confirm => "Delete #{common_parameter.name}?" %>
</td>
</tr>
<% end %>

Also available in: Unified diff