Added 'Bulk edit' functionality.
This can be done by clicking on the edit link (little pen icon) at the upper-left corner of the issue list. Most properties can be set (priority, assignee, category, fixed version, start and due dates, done ratio) and a note can be entered. Only issues of the current project can be selected for bulk edit (subproject issues can't). git-svn-id: http://redmine.rubyforge.org/svn/trunk@817 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
df631e8c06
commit
2c4647f8c6
24 files changed
+167
-8
No files matched your search
@@ -1,6 +1,11 @@
|
||||
<div id="bulk-edit"></div>
|
||||
<table class="list">
|
||||
<thead><tr>
|
||||
<th></th>
|
||||
<th><%= link_to_remote(image_tag('edit.png'),
|
||||
{:url => { :controller => 'projects', :action => 'bulk_edit_issues', :id => @project },
|
||||
:method => :get},
|
||||
{:title => l(:label_bulk_edit_selected_issues)}) if @project && User.current.allowed_to?(:edit_issues, @project) %>
|
||||
</th>
|
||||
<%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %>
|
||||
<% query.columns.each do |column| %>
|
||||
<%= column_header(column) %>
|
||||
@@ -9,7 +14,7 @@
|
||||
<tbody>
|
||||
<% issues.each do |issue| %>
|
||||
<tr class="issue <%= cycle('odd', 'even') %>">
|
||||
<td class="checkbox"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></td>
|
||||
<td class="checkbox"><%= check_box_tag("issue_ids[]", issue.id, false, :id => "issue_#{issue.id}", :disabled => (!@project || @project != issue.project)) %></td>
|
||||
<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
||||
<% query.columns.each do |column| %>
|
||||
<%= content_tag 'td', column_content(column, issue), :class => column.name %>
|
||||
|
||||
Reference in new issue
Block a user