@@ -29,12 +29,17 | |||||
29 | <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", |
|
29 | <%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.try(:id) || 0}')", | |
30 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", |
|
30 | :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}", | |
31 | :class => 'icon-only icon-checked') %> |
|
31 | :class => 'icon-only icon-checked') %> | |
32 |
|
32 | <% if old_status %> | ||
33 |
<% |
|
33 | <% old_status_name = old_status.name %> | |
|
34 | <%= old_status_name %> | |||
|
35 | <% else %> | |||
|
36 | <% old_status_name = l(:label_issue_new) %> | |||
|
37 | <%= content_tag('em', old_status_name) %> | |||
|
38 | <% end %> | |||
34 | </td> |
|
39 | </td> | |
35 | <% for new_status in @statuses -%> |
|
40 | <% for new_status in @statuses -%> | |
36 | <% checked = workflows.detect {|w| w.old_status == old_status && w.new_status == new_status} %> |
|
41 | <% checked = workflows.detect {|w| w.old_status == old_status && w.new_status == new_status} %> | |
37 | <td class="<%= checked ? 'enabled' : '' %>"> |
|
42 | <td class="<%= checked ? 'enabled' : '' %>" title="<%= old_status_name %> » <%= new_status.name %>"> | |
38 | <%= transition_tag workflows, old_status, new_status, name %> |
|
43 | <%= transition_tag workflows, old_status, new_status, name %> | |
39 | </td> |
|
44 | </td> | |
40 | <% end -%> |
|
45 | <% end -%> |
@@ -65,7 +65,7 | |||||
65 | <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> |
|
65 | <%= name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> | |
66 | </td> |
|
66 | </td> | |
67 | <% for status in @statuses -%> |
|
67 | <% for status in @statuses -%> | |
68 | <td class="<%= @permissions[status.id][field].try(:join, ' ') %>"> |
|
68 | <td class="<%= @permissions[status.id][field].try(:join, ' ') %>" title="<%= name %> (<%= status.name %>)"> | |
69 | <%= field_permission_tag(@permissions, status, field, @roles) %> |
|
69 | <%= field_permission_tag(@permissions, status, field, @roles) %> | |
70 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> |
|
70 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> | |
71 | </td> |
|
71 | </td> | |
@@ -85,7 +85,7 | |||||
85 | <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> |
|
85 | <%= field.name %> <%= content_tag('span', '*', :class => 'required') if field_required?(field) %> | |
86 | </td> |
|
86 | </td> | |
87 | <% for status in @statuses -%> |
|
87 | <% for status in @statuses -%> | |
88 | <td class="<%= @permissions[status.id][field.id.to_s].try(:join, ' ') %>"> |
|
88 | <td class="<%= @permissions[status.id][field.id.to_s].try(:join, ' ') %>" title="<%= field.name %> (<%= status.name %>)"> | |
89 | <%= field_permission_tag(@permissions, status, field, @roles) %> |
|
89 | <%= field_permission_tag(@permissions, status, field, @roles) %> | |
90 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> |
|
90 | <% unless status == @statuses.last %><a href="#" class="repeat-value">»</a><% end %> | |
91 | </td> |
|
91 | </td> |
General Comments 0
You need to be logged in to leave comments.
Login now