[#667] set unique id for each checkbox and linked it

added "no-css" class to overwrite the current label style
This commit is contained in:
Romano Licker 2011-10-20 17:47:35 +02:00 committed by Holger Just
parent 207af21553
commit 2f5cf020f3
2 changed files with 8 additions and 2 deletions

View File

@ -79,10 +79,9 @@ function toggle_custom_field_format() {
<div class="box"> <div class="box">
<% case @custom_field.class.name <% case @custom_field.class.name
when "IssueCustomField" %> when "IssueCustomField" %>
<fieldset><legend><%=l(:label_tracker_plural)%></legend> <fieldset><legend><%=l(:label_tracker_plural)%></legend>
<% for tracker in @trackers %> <% 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 %> <% end %>
<%= hidden_field_tag "custom_field[tracker_ids][]", '' %> <%= hidden_field_tag "custom_field[tracker_ids][]", '' %>
</fieldset> </fieldset>

View File

@ -424,6 +424,13 @@ margin-left: 5px !important;
width: auto; width: auto;
} }
label#no-css {
font-weight: inherit;
float:none;
text-align:left;
margin-left:0px;
width:auto;
}
input#time_entry_comments { width: 90%;} input#time_entry_comments { width: 90%;}
#preview fieldset {margin-top: 1em; background: url(../images/draft.png)} #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}