]> source.dussan.org Git - redmine.git/commitdiff
[#9489] linked labels to their elements
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:22:02 +0000 (01:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 29 Oct 2011 01:22:02 +0000 (01:22 +0000)
Contributed by Romano Licker.

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

app/views/time_entry_reports/report.html.erb

index 469921077fd27a556e312a78274d206b4d272bd7..feb31e82cf32ae6e5530174656ff24eca18871de 100644 (file)
   <% end %>
   <%= render :partial => 'timelog/date_range' %>
 
-  <p><%= l(:label_details) %>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'],
+  <p><label for='columns'><%= l(:label_details) %></label>: <%= select_tag 'columns', options_for_select([[l(:label_year), 'year'],
                                                                             [l(:label_month), 'month'],
                                                                             [l(:label_week), 'week'],
                                                                             [l(:label_day_plural).titleize, 'day']], @columns),
                                                         :onchange => "this.form.onsubmit();" %>
 
-  <%= l(:button_add) %>: <%= select_tag('criterias[]', options_for_select([[]] + (@available_criterias.keys - @criterias).collect{|k| [l_or_humanize(@available_criterias[k][:label]), k]}),
+  <label for='criterias'><%= l(:button_add) %></label>: <%= select_tag('criterias[]', options_for_select([[]] + (@available_criterias.keys - @criterias).collect{|k| [l_or_humanize(@available_criterias[k][:label]), k]}),
                                                           :onchange => "this.form.submit();",
                                                           :style => 'width: 200px',
                                                           :id => nil,
-                                                          :disabled => (@criterias.length >= 3)) %>
+                                                          :disabled => (@criterias.length >= 3), :id => "criterias") %>
      <%= link_to l(:button_clear), {:project_id => @project, :issue_id => @issue, :period_type => params[:period_type], :period => params[:period], :from => @from, :to => @to, :columns => @columns}, :class => 'icon icon-reload' %></p>
 <% end %>