@@ -35,18 +35,28 | |||
|
35 | 35 | <tr> |
|
36 | 36 | <td></td> |
|
37 | 37 | <% for new_status in @statuses %> |
|
38 |
<td width="<%= 75 / @statuses.size %>%" align="center"> |
|
|
38 | <td width="<%= 75 / @statuses.size %>%" align="center"> | |
|
39 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.new-status-#{new_status.id}')", | |
|
40 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
|
41 | <%= new_status.name %> | |
|
42 | </td> | |
|
39 | 43 | <% end %> |
|
40 | 44 | </tr> |
|
41 | 45 | </thead> |
|
42 | 46 | <tbody> |
|
43 | 47 | <% for old_status in @statuses %> |
|
44 | 48 | <tr class="<%= cycle("odd", "even") %>"> |
|
45 | <td><%= old_status.name %></td> | |
|
49 | <td> | |
|
50 | <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('input.old-status-#{old_status.id}')", | |
|
51 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
|
52 | ||
|
53 | <%= old_status.name %> | |
|
54 | </td> | |
|
46 | 55 | <% new_status_ids_allowed = old_status.find_new_statuses_allowed_to([@role], @tracker).collect(&:id) -%> |
|
47 | 56 | <% for new_status in @statuses -%> |
|
48 | 57 | <td align="center"> |
|
49 |
<%= check_box_tag "issue_status[#{ old_status.id }][]", new_status.id, new_status_ids_allowed.include?(new_status.id) |
|
|
58 | <%= check_box_tag "issue_status[#{ old_status.id }][]", new_status.id, new_status_ids_allowed.include?(new_status.id), | |
|
59 | :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %> | |
|
50 | 60 | </td> |
|
51 | 61 | <% end -%> |
|
52 | 62 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now