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