_form.html.erb
40 lines
| 1.7 KiB
| text/plain
|
TextLexer
|
r4775 | <table class="list transitions-<%= name %>"> | ||
<thead> | ||||
|
r6556 | <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)}") %> | ||||
|
r4775 | <%=l(:label_current_status)%> | ||
</th> | ||||
|
r6556 | <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> | ||||
|
r4775 | </thead> | ||
<tbody> | ||||
|
r6556 | <% 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)}") %> | ||||
|
r6558 | |||
|
r6556 | <%=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}, | ||||
|
r6558 | :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %> | ||
|
r6556 | </td> | ||
<% end -%> | ||||
</tr> | ||||
<% end %> | ||||
|
r4775 | </tbody> | ||
|
r6556 | </table> | ||