##// END OF EJS Templates
Replaces acts_as_list with an implementation that handles #position= (#12909)....
Replaces acts_as_list with an implementation that handles #position= (#12909). Objects are reordered using the regular attribute writer #position= and AR callbacks. git-svn-id: http://svn.redmine.org/redmine/trunk@15335 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14910:382b6911fdd9
r14953:64afa24a7f72
Show More
show.html.erb
30 lines | 810 B | text/plain | TextLexer
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 <h2><%= l(:label_import_issues) %></h2>
<% if @import.unsaved_items.count == 0 %>
<p><%= l(:notice_import_finished, :count => @import.saved_items.count) %></p>
Jean-Philippe Lang
HTML markup discrepancy ol and ul at app/views/imports/show.html.erb (#22134)....
r14910 <ul>
Jean-Philippe Lang
Import issues from CSV file (#950)....
r14111 <% @import.saved_objects.each do |issue| %>
<li><%= link_to_issue issue %></li>
<% end %>
</ul>
<% else %>
<p><%= l(:notice_import_finished_with_errors, :count => @import.unsaved_items.count, :total => @import.total_items) %></p>
<table id="unsaved-items" class="list">
<tr>
<th>Position</th>
<th>Message</th>
</tr>
<% @import.unsaved_items.each do |item| %>
<tr>
<td><%= item.position %></td>
<td><%= simple_format_without_paragraph item.message %></td>
</tr>
<% end %>
</table>
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
<% end %>