Project

General

Profile

« Previous | Next » 

Revision 18785536

Added by Marc Dequènes over 14 years ago

  • ID 187855365e72ed5e6045ced03fff41a399ce5a94

[cosmetic] repeat pagination and new action controls in artworks administration page (closes #88)

View differences:

app/views/admin/artworks/index.rhtml
<h2><%= _("List of Artworks") %></h2>
<p>
<% @artworks = resource_model.paginate(:all, :include => [:artwork_set, :artwork_group], :order => params[:sort], :page => params[:page]) %>
<%= display_new_action %>
<%= will_paginate @artworks %>
<% form_tag({ :action => 'artworks_selection' }, { :id => 'artworks_selection_form' }) do %>
<table id="artworks_selection_zone">
<tr>
......
# work around 'sortable-list' plugin not enforcing default sort
params[:sort] ||= :title
%>
<% @artworks = resource_model.paginate(:all, :include => [:artwork_set, :artwork_group], :order => params[:sort], :page => params[:page]) %>
<% @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