summaryrefslogtreecommitdiffstats
path: root/app/views/workflows/_form.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 15:25:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 15:25:26 +0000
commitcb09055d60a711438cb90259d8616def79586d57 (patch)
tree8a9823fc95fa1d25b3c27a8d7e03a9190baf9215 /app/views/workflows/_form.html.erb
parent9e06942ef01ef21e58c8770ad026b100d491167a (diff)
downloadredmine-cb09055d60a711438cb90259d8616def79586d57.tar.gz
redmine-cb09055d60a711438cb90259d8616def79586d57.zip
Colorize transitions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9988 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/workflows/_form.html.erb')
-rw-r--r--app/views/workflows/_form.html.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/workflows/_form.html.erb b/app/views/workflows/_form.html.erb
index 5ff7695e7..ec015a994 100644
--- a/app/views/workflows/_form.html.erb
+++ b/app/views/workflows/_form.html.erb
@@ -1,4 +1,4 @@
-<table class="list transitions-<%= name %>">
+<table class="list transitions transitions-<%= name %>">
<thead>
<tr>
<th align="left">
@@ -29,8 +29,9 @@
<%=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},
+ <% checked = workflows.detect {|w| w.old_status_id == old_status.id && w.new_status_id == new_status.id} %>
+ <td align="center" 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 -%>