2011-02-20 18:38:07 +03:00
|
|
|
<table class="list transitions-<%= name %>">
|
|
|
|
<thead>
|
2011-08-28 03:39:10 +04:00
|
|
|
<tr>
|
|
|
|
<th align="left">
|
|
|
|
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input')",
|
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
|
2011-02-20 18:38:07 +03:00
|
|
|
<%=l(:label_current_status)%>
|
|
|
|
</th>
|
2011-08-28 03:39:10 +04:00
|
|
|
<th align="center" colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<% for new_status in @statuses %>
|
|
|
|
<td width="<%= 75 / @statuses.size %>%" align="center">
|
|
|
|
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')",
|
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
|
|
|
|
<%=h new_status.name %>
|
|
|
|
</td>
|
|
|
|
<% end %>
|
|
|
|
</tr>
|
2011-02-20 18:38:07 +03:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2011-08-28 03:39:10 +04:00
|
|
|
<% for old_status in @statuses %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<td>
|
|
|
|
<%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')",
|
|
|
|
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %>
|
2011-08-28 03:40:45 +04:00
|
|
|
|
2011-08-28 03:39:10 +04:00
|
|
|
<%=h old_status.name %>
|
|
|
|
</td>
|
|
|
|
<% for new_status in @statuses -%>
|
|
|
|
<td align="center">
|
|
|
|
<%= check_box_tag "issue_status[#{ old_status.id }][#{new_status.id}][]", name, workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id},
|
2011-08-28 03:40:45 +04:00
|
|
|
:class => "old-status-#{old_status.id} new-status-#{new_status.id}" %>
|
2011-08-28 03:39:10 +04:00
|
|
|
</td>
|
|
|
|
<% end -%>
|
|
|
|
</tr>
|
|
|
|
<% end %>
|
2011-02-20 18:38:07 +03:00
|
|
|
</tbody>
|
2011-08-28 03:39:10 +04:00
|
|
|
</table>
|