Mercurial > hg > soundsoftware-site
comparison .svn/pristine/22/228ab5b14477141cc691a1ebb6e20efbefbf1ba7.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
1 <table class="list transitions transitions-<%= name %>"> | |
2 <thead> | |
3 <tr> | |
4 <th align="left"> | |
5 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input')", | |
6 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
7 <%=l(:label_current_status)%> | |
8 </th> | |
9 <th align="center" colspan="<%= @statuses.length %>"><%=l(:label_new_statuses_allowed)%></th> | |
10 </tr> | |
11 <tr> | |
12 <td></td> | |
13 <% for new_status in @statuses %> | |
14 <td width="<%= 75 / @statuses.size %>%" align="center"> | |
15 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.new-status-#{new_status.id}')", | |
16 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
17 <%=h new_status.name %> | |
18 </td> | |
19 <% end %> | |
20 </tr> | |
21 </thead> | |
22 <tbody> | |
23 <% for old_status in @statuses %> | |
24 <tr class="<%= cycle("odd", "even") %>"> | |
25 <td> | |
26 <%= link_to_function(image_tag('toggle_check.png'), "toggleCheckboxesBySelector('table.transitions-#{name} input.old-status-#{old_status.id}')", | |
27 :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}") %> | |
28 | |
29 <%=h old_status.name %> | |
30 </td> | |
31 <% for new_status in @statuses -%> | |
32 <% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %> | |
33 <td align="center" class="<%= checked ? 'enabled' : '' %>"> | |
34 <%= check_box_tag "issue_status[#{ old_status.id }][#{new_status.id}][]", name, checked, | |
35 :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %> | |
36 </td> | |
37 <% end -%> | |
38 </tr> | |
39 <% end %> | |
40 </tbody> | |
41 </table> |