diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-29 01:17:30 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-29 01:17:30 +0000 |
commit | fb0c6d433ffb14d0842a86a95c133bbfaa164430 (patch) | |
tree | 7de82b14c84025b371887c544852a3d155b3ed84 /app | |
parent | e76e7fd6ea2aa5209130c5ad4685e46ad26bdfa7 (diff) | |
download | redmine-fb0c6d433ffb14d0842a86a95c133bbfaa164430.tar.gz redmine-fb0c6d433ffb14d0842a86a95c133bbfaa164430.zip |
[#9489] set unique id for each checkbox and linked it
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
Diffstat (limited to 'app')
-rw-r--r-- | app/views/custom_fields/_form.html.erb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index 96a8dcd3c..9db6e9045 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -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> |