diff .svn/pristine/09/09fd6db0926bf35a4db846796898a3efe70dfa6f.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.svn/pristine/09/09fd6db0926bf35a4db846796898a3efe70dfa6f.svn-base	Fri Feb 24 19:09:32 2012 +0000
@@ -0,0 +1,40 @@
+<table class="list transitions-<%= name %>">
+<thead>
+  <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)}") %>
+      <%=l(:label_current_status)%>
+    </th>
+    <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>
+</thead>
+<tbody>
+  <% 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)}") %>
+
+      <%=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},
+            :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %>
+    </td>
+    <% end -%>
+  </tr>
+  <% end %>
+</tbody>
+</table>