Revision 1a437641
Added by Marc Dequènes over 14 years ago
- ID 1a437641af03e2f49fed1d5ee2433e30d772ded8
app/views/admin/artworks/index.rhtml | ||
---|---|---|
<h2><%= _("List of Artworks") %></h2>
|
||
|
||
<p>
|
||
<%
|
||
# work around 'sortable-list' plugin not enforcing default sort
|
||
params[:sort] ||= "title ASC"
|
||
%>
|
||
<% @artworks = resource_model.paginate(:all, :include => [:artwork_set, :artwork_group], :order => params[:sort], :page => params[:page]) %>
|
||
<%= display_new_action %>
|
||
<%= will_paginate @artworks %>
|
||
... | ... | |
<th><%= _("Steps") %></th>
|
||
<th><%= _("Actions") %></th>
|
||
</tr>
|
||
<%
|
||
# work around 'sortable-list' plugin not enforcing default sort
|
||
params[:sort] ||= :title
|
||
%>
|
||
<% @artworks.each do |artwork| %>
|
||
<tr>
|
||
<td><%= check_box_tag 'artworks_selection_ids[]', artwork.id, false, :id => "artworks_selection_id_#{artwork.id}" %></td>
|
Also available in: Unified diff
[fix] corrected sort on artworks index