[#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
This commit is contained in:
parent
21d74ecead
commit
8ea09238da
|
@ -2,17 +2,22 @@
|
||||||
<legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend>
|
<legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<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]),
|
<%= select_tag 'period', options_for_period_select(params[:period]),
|
||||||
:onchange => 'this.form.submit();',
|
:onchange => 'this.form.submit();',
|
||||||
:onfocus => '$("period_type_1").checked = true;',
|
:onfocus => '$("period_type_1").checked = true;',
|
||||||
:disabled => @free_period %>
|
:disabled => @free_period %>
|
||||||
</p>
|
</p>
|
||||||
<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;">
|
<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')),
|
<%= l(:label_date_from_to,
|
||||||
:end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('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>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1010,4 +1010,8 @@ de:
|
||||||
description_selected_columns: Ausgewählte Spalten
|
description_selected_columns: Ausgewählte Spalten
|
||||||
description_ticket_reassign: Ticketzuordnung
|
description_ticket_reassign: Ticketzuordnung
|
||||||
description_wiki_reassign: Wikiseitenzuordnung
|
description_wiki_reassign: Wikiseitenzuordnung
|
||||||
|
description_date_range_list: Zeitraum aus einer Liste wählen
|
||||||
|
description_date_range_interval: Zeitraum durch Start- und Enddatum festlegen
|
||||||
|
description_date_from: Startdatum eintragen
|
||||||
|
description_date_to: Enddatum eintragen
|
||||||
|
|
||||||
|
|
|
@ -988,3 +988,7 @@ en:
|
||||||
description_selected_columns: Selected Spalten
|
description_selected_columns: Selected Spalten
|
||||||
description_ticket_reassign: Assign issues to
|
description_ticket_reassign: Assign issues to
|
||||||
description_wiki_reassign: Assign page to
|
description_wiki_reassign: Assign page to
|
||||||
|
description_date_range_list: Choose range from list
|
||||||
|
description_date_range_interval: Choose range by selecting start and end date
|
||||||
|
description_date_from: Enter start date
|
||||||
|
description_date_to: Enter end date
|
||||||
|
|
Loading…
Reference in New Issue