Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
49
app/views/workflows/_form.html.erb
Normal file
49
app/views/workflows/_form.html.erb
Normal file
|
@ -0,0 +1,49 @@
|
|||
<table class="list workflows transitions transitions-<%= name %>">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input[type=checkbox]')",
|
||||
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
|
||||
:class => 'icon-only icon-checked') %>
|
||||
<%=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('', "toggleCheckboxesBySelector('table.transitions-#{name} input[type=checkbox].new-status-#{new_status.id}')",
|
||||
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
|
||||
:class => 'icon-only icon-checked') %>
|
||||
<%= new_status.name %>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% for old_status in [nil] + @statuses %>
|
||||
<% next if old_status.nil? && name != 'always' %>
|
||||
<tr>
|
||||
<td class="name">
|
||||
<%= link_to_function('', "toggleCheckboxesBySelector('table.transitions-#{name} input[type=checkbox].old-status-#{old_status.try(:id) || 0}')",
|
||||
:title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}",
|
||||
:class => 'icon-only icon-checked') %>
|
||||
<% if old_status %>
|
||||
<% old_status_name = old_status.name %>
|
||||
<%= old_status_name %>
|
||||
<% else %>
|
||||
<% old_status_name = l(:label_issue_new) %>
|
||||
<%= content_tag('em', old_status_name) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% for new_status in @statuses -%>
|
||||
<% checked = workflows.detect {|w| w.old_status == old_status && w.new_status == new_status} %>
|
||||
<td class="<%= checked ? 'enabled' : '' %>" title="<%= old_status_name %> » <%= new_status.name %>">
|
||||
<%= transition_tag workflows, old_status, new_status, name %>
|
||||
</td>
|
||||
<% end -%>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue