summaryrefslogtreecommitdiffstats
path: root/app/views/timelog
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:20:55 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-10-29 01:20:55 +0000
commit8ea09238da0bd4ce735cfa32ec143186a7745d3d (patch)
treedaf9f9fa9156c4caa5d58a77fbb6b43a519f5eef /app/views/timelog
parent21d74ecead6669f9151d2cd9b67e1ff679893ef5 (diff)
downloadredmine-8ea09238da0bd4ce735cfa32ec143186a7745d3d.tar.gz
redmine-8ea09238da0bd4ce735cfa32ec143186a7745d3d.zip
[#9489] set ids, created invisible labels and linked them
Contributed by Romano Licker. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7689 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r--app/views/timelog/_date_range.html.erb13
1 files changed, 9 insertions, 4 deletions
diff --git a/app/views/timelog/_date_range.html.erb b/app/views/timelog/_date_range.html.erb
index 93c487a20..fb694a704 100644
--- a/app/views/timelog/_date_range.html.erb
+++ b/app/views/timelog/_date_range.html.erb
@@ -2,17 +2,22 @@
<legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend>
<div>
<p>
-<%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");' %>
+<%= label_tag "period_type_list", l(:description_date_range_list), :class => "hidden-for-sighted" %>
+<%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");', :id => "period_type_list"%>
<%= select_tag 'period', options_for_period_select(params[:period]),
:onchange => 'this.form.submit();',
:onfocus => '$("period_type_1").checked = true;',
:disabled => @free_period %>
</p>
<p>
-<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %>
+<%= label_tag "period_type_interval", l(:description_date_range_interval), :class => "hidden-for-sighted" %>
+<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");', :id => "period_type_interval" %>
<span onclick="$('period_type_2').checked = true;">
-<%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),
- :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %>
+<%= l(:label_date_from_to,
+ :start => ((label_tag "from", l(:description_date_from), :class => "hidden-for-sighted") +
+ text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),
+ :end => ((label_tag "to", l(:description_date_to), :class => "hidden-for-sighted") +
+ text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %>
</span>
</p>
</div>