Code cleanup, use named routes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11071 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-12-22 12:24:43 +00:00
parent a4f989a5e0
commit ad246e81ad
4 changed files with 42 additions and 25 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
<h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2>
<ul>
<ul id="bulk-selection">
<% @issues.each do |issue| %>
<%= content_tag 'li', link_to_issue(issue) %>
<% end %>
</ul>
<%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %>
<%= form_tag(bulk_update_issues_path, :id => 'bulk_edit_form') do %>
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %>
<div class="box tabular">
<fieldset class="attributes">
+2 -2
View File
@@ -1,13 +1,13 @@
<h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
<ul>
<ul id="bulk-selection">
<% @time_entries.each do |entry| %>
<%= content_tag 'li',
link_to("#{format_date(entry.spent_on)} - #{entry.project}: #{l(:label_f_hour_plural, :value => entry.hours)}", edit_time_entry_path(entry)) %>
<% end %>
</ul>
<%= form_tag(:action => 'bulk_update') do %>
<%= form_tag(bulk_update_time_entries_path, :id => 'bulk_edit_form') do %>
<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
<div class="box tabular">
<div>