]> source.dussan.org Git - redmine.git/commitdiff
[#9489] use class instead of redundant id for label "no-css"
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 30 Oct 2011 00:27:33 +0000 (00:27 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 30 Oct 2011 00:27:33 +0000 (00:27 +0000)
Contributed by Holger Just.

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

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

index 9db6e9045f3e207244781d505143c1f06923e574..53e71703d1157de2de871dff81353b9bd2135e1f 100644 (file)
@@ -82,8 +82,13 @@ 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),
-                          :id => "custom_field_tracker_ids_#{tracker.id}" %><label id="no-css" for="custom_field_tracker_ids_<%=tracker.id%>"><%= h(tracker.name) %></label>
+      <%= check_box_tag "custom_field[tracker_ids][]",
+                        tracker.id,
+                        (@custom_field.trackers.include? tracker),
+                        :id => "custom_field_tracker_ids_#{tracker.id}" %>
+      <label class="no-css" for="custom_field_tracker_ids_<%=tracker.id%>">
+        <%= h(tracker.name) %>
+      </label>
     <% end %>
     <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
     </fieldset>
index d0a9e4be3a25bf7dd73be8f7b426a08d648c9f2b..44a67e47718e57d4d702c41f911a853d17545fd4 100644 (file)
@@ -431,7 +431,7 @@ margin-left: 5px !important;
 width: auto;
 }
 
-label#no-css {
+label.no-css {
   font-weight: inherit;
   float:none;
   text-align:left;