Chris@0:
Chris@0: <%= l(:label_date_range) %> Chris@0:
Chris@0:

Chris@441: <%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");' %> Chris@0: <%= select_tag 'period', options_for_period_select(params[:period]), Chris@441: :onchange => 'this.form.submit();', Chris@441: :onfocus => '$("period_type_1").checked = true;', Chris@441: :disabled => @free_period %> Chris@0:

Chris@0:

Chris@441: <%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %> Chris@0: Chris@441: <%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')), Chris@441: :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %> Chris@0: Chris@0:

Chris@0:
Chris@0:
Chris@0:

Chris@441: <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> Chris@441: <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> Chris@0:

Chris@0: Chris@0:
Chris@0: <% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> Chris@0: Chris@0: