Mercurial > hg > soundsoftware-site
diff .svn/pristine/af/af4ee39953b41daae78d74937664bfbeedf5ef0a.svn-base @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.svn/pristine/af/af4ee39953b41daae78d74937664bfbeedf5ef0a.svn-base Tue Jan 14 14:37:42 2014 +0000 @@ -0,0 +1,41 @@ +<table class="list transitions transitions-<%= name %>"> +<thead> + <tr> + <th> + <%= 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 colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th> + </tr> + <tr> + <td></td> + <% for new_status in @statuses %> + <td style="width:<%= 75 / @statuses.size %>%;"> + <%= 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 class="name"> + <%= 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 -%> + <% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %> + <td class="<%= checked ? 'enabled' : '' %>"> + <%= check_box_tag "issue_status[#{ old_status.id }][#{new_status.id}][]", name, checked, + :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %> + </td> + <% end -%> + </tr> + <% end %> +</tbody> +</table>