]> source.dussan.org Git - redmine.git/commitdiff
Colorize transitions.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 15:25:26 +0000 (15:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Jul 2012 15:25:26 +0000 (15:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9988 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/workflows/_form.html.erb
public/stylesheets/application.css

index 5ff7695e7b22177be942adc9d87215fbcd26687b..ec015a994cf20fdfd9482738f5541432aaed2d14 100644 (file)
@@ -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 -%>
index 013c1b7266fc30ee40073fc66a21fc3283ea9cb8..406c54a174f7077e941f3d1a6abd4fe86d31e212 100644 (file)
@@ -433,6 +433,7 @@ ul.properties li span {font-style:italic;}
 #user_login, #user_firstname, #user_lastname, #user_mail, #my_account_form select, #user_form select, #user_identity_url { width: 90%; }
 
 #workflow_copy_form select { width: 200px; }
+table.transitions td.enabled {background: #bfb;}
 table.fields_permissions select {font-size:90%}
 table.fields_permissions td.readonly {background:#ddd;}
 table.fields_permissions td.required {background:#d88;}