@@ -1,35 +1,36 | |||
|
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 %> |
|
6 | 6 | <%= select_tag 'period', options_for_period_select(params[:period]), |
|
7 | 7 | :onchange => 'this.form.onsubmit();', |
|
8 | 8 | :onfocus => '$("period_type_1").checked = true;' %> |
|
9 | 9 | </p> |
|
10 | 10 | <p> |
|
11 | 11 | <%= radio_button_tag 'period_type', '2', @free_period %> |
|
12 | 12 | <span onclick="$('period_type_2').checked = true;"> |
|
13 | 13 | <%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10) + calendar_for('from')), |
|
14 | 14 | :end => (text_field_tag('to', @to, :size => 10) + calendar_for('to'))) %> |
|
15 | 15 | </span> |
|
16 | 16 | </p> |
|
17 | 17 | </div> |
|
18 | 18 | </fieldset> |
|
19 | 19 | <p class="buttons"> |
|
20 | 20 | <%= link_to_remote l(:button_apply), |
|
21 | 21 | { :url => { }, |
|
22 | 22 | :update => "content", |
|
23 |
|
|
|
23 | :with => "Form.serialize('query_form')", | |
|
24 | :method => :get | |
|
24 | 25 | }, :class => 'icon icon-checked' %> |
|
25 | 26 | </p> |
|
26 | 27 | |
|
27 | 28 | <div class="tabs"> |
|
28 | 29 | <% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> |
|
29 | 30 | <ul> |
|
30 | 31 | <li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue }), |
|
31 | 32 | :class => (@controller.action_name == 'details' ? 'selected' : nil)) %></li> |
|
32 | 33 | <li><%= link_to(l(:label_report), url_params.merge({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}), |
|
33 | 34 | :class => (@controller.action_name == 'report' ? 'selected' : nil)) %></li> |
|
34 | 35 | </ul> |
|
35 | 36 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now