]> source.dussan.org Git - redmine.git/commitdiff
[#9489] set unique id for each checkbox and linked it
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:17:30 +0000 (01:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:17:30 +0000 (01:17 +0000)
added "no-css" class to overwrite the current label style

Contributed by Romano Licker.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7683 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 96a8dcd3c89683d42b1b8340a538a964007598d1..9db6e9045f3e207244781d505143c1f06923e574 100644 (file)
@@ -82,7 +82,8 @@ when "IssueCustomField" %>
 
     <fieldset><legend><%=l(:label_tracker_plural)%></legend>
     <% for tracker in @trackers %>
-        <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker) %> <%=h tracker.name %>
+        <%= check_box_tag "custom_field[tracker_ids][]", tracker.id, (@custom_field.trackers.include? tracker),
+                          :id => "custom_field_tracker_ids_#{tracker.id}" %><label id="no-css" for="custom_field_tracker_ids_<%=tracker.id%>"><%= h(tracker.name) %></label>
     <% end %>
     <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
     </fieldset>
index 183804dfb68ca380d33e08a3308e562cf372c4d3..d0a9e4be3a25bf7dd73be8f7b426a08d648c9f2b 100644 (file)
@@ -431,6 +431,13 @@ margin-left: 5px !important;
 width: auto;
 }
 
+label#no-css {
+  font-weight: inherit;
+  float:none;
+  text-align:left;
+  margin-left:0px;
+  width:auto;
+}
 input#time_entry_comments { width: 90%;}
 
 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}