diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-07 11:19:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-12-07 11:19:30 +0000 |
commit | 5e38bd93634b9135e5f294ec1823e8a6b04c3b64 (patch) | |
tree | 0abe6ed37c9b5f8e6c2266b75178af7b4a2b9c73 /app/views | |
parent | a79cf8d574d1bdad8483586014019ed9ee2b3bdf (diff) | |
download | redmine-5e38bd93634b9135e5f294ec1823e8a6b04c3b64.tar.gz redmine-5e38bd93634b9135e5f294ec1823e8a6b04c3b64.zip |
Performance improvement on workflow setup screen.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@957 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/roles/workflow.rhtml | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/roles/workflow.rhtml b/app/views/roles/workflow.rhtml index 2bc2abd51..0a435744f 100644 --- a/app/views/roles/workflow.rhtml +++ b/app/views/roles/workflow.rhtml @@ -35,18 +35,16 @@ <% for old_status in @statuses %> <tr> - <td><%= old_status.name %></td> - <% for new_status in @statuses %> + <td><%= old_status.name %></td> + <% new_status_ids_allowed = old_status.find_new_statuses_allowed_to(@role, @tracker).collect(&:id) -%> + <% for new_status in @statuses -%> <td align="center"> - - <input type="checkbox" + <input type="checkbox" name="issue_status[<%= old_status.id %>][]" value="<%= new_status.id %>" - <%if old_status.new_statuses_allowed_to(@role, @tracker).include? new_status%>checked="checked"<%end%> - > + <%= 'checked="checked"' if new_status_ids_allowed.include? new_status.id %>> </td> - <% end %> - + <% end -%> </tr> <% end %> </table> |