From: Jean-Philippe Lang Date: Sun, 15 Jul 2012 15:25:26 +0000 (+0000) Subject: Colorize transitions. X-Git-Tag: 2.1.0~328 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb09055d60a711438cb90259d8616def79586d57;p=redmine.git Colorize transitions. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9988 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 @@ - +
<% end -%> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 013c1b726..406c54a17 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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;}
@@ -29,8 +29,9 @@ <%=h old_status.name %> <% for new_status in @statuses -%> - - <%= 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} %> + + <%= check_box_tag "issue_status[#{ old_status.id }][#{new_status.id}][]", name, checked, :class => "old-status-#{old_status.id} new-status-#{new_status.id}" %>