@@ -1,33 +1,33 | |||
|
1 | 1 | <fieldset id="date-range" class="collapsible"> |
|
2 | 2 | <legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend> |
|
3 | 3 | <div> |
|
4 | 4 | <p> |
|
5 | 5 | <%= radio_button_tag 'period_type', '1', !@free_period, :onclick => 'Form.Element.disable("from");Form.Element.disable("to");Form.Element.enable("period");' %> |
|
6 | 6 | <%= select_tag 'period', options_for_period_select(params[:period]), |
|
7 | 7 | :onchange => 'this.form.submit();', |
|
8 | 8 | :onfocus => '$("period_type_1").checked = true;', |
|
9 | 9 | :disabled => @free_period %> |
|
10 | 10 | </p> |
|
11 | 11 | <p> |
|
12 | 12 | <%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %> |
|
13 | 13 | <span onclick="$('period_type_2').checked = true;"> |
|
14 | 14 | <%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')), |
|
15 |
|
|
|
15 | :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %> | |
|
16 | 16 | </span> |
|
17 | 17 | </p> |
|
18 | 18 | </div> |
|
19 | 19 | </fieldset> |
|
20 | 20 | <p class="buttons"> |
|
21 |
|
|
|
21 | <%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %> | |
|
22 | 22 | <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> |
|
23 | 23 | </p> |
|
24 | 24 | |
|
25 | 25 | <div class="tabs"> |
|
26 | 26 | <% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> |
|
27 | 27 | <ul> |
|
28 | 28 | <li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue }), |
|
29 | 29 | :class => (@controller.action_name == 'index' ? 'selected' : nil)) %></li> |
|
30 | 30 | <li><%= link_to(l(:label_report), url_params.merge({:controller => 'time_entry_reports', :action => 'report', :project_id => @project, :issue_id => @issue}), |
|
31 | 31 | :class => (@controller.action_name == 'report' ? 'selected' : nil)) %></li> |
|
32 | 32 | </ul> |
|
33 | 33 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now