2007-10-09 23:07:19 +04:00
|
|
|
<div id="bulk-edit"></div>
|
2007-10-01 12:44:17 +04:00
|
|
|
<table class="list">
|
|
|
|
<thead><tr>
|
2007-10-09 23:07:19 +04:00
|
|
|
<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>
|
2007-10-01 12:44:17 +04:00
|
|
|
<%= sort_header_tag("#{Issue.table_name}.id", :caption => '#') %>
|
|
|
|
<% query.columns.each do |column| %>
|
|
|
|
<%= column_header(column) %>
|
|
|
|
<% end %>
|
|
|
|
</tr></thead>
|
|
|
|
<tbody>
|
|
|
|
<% issues.each do |issue| %>
|
2007-10-28 13:55:59 +03:00
|
|
|
<tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
|
2007-10-09 23:07:19 +04:00
|
|
|
<td class="checkbox"><%= check_box_tag("issue_ids[]", issue.id, false, :id => "issue_#{issue.id}", :disabled => (!@project || @project != issue.project)) %></td>
|
2007-10-01 12:44:17 +04:00
|
|
|
<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 %>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|