Mercurial > hg > soundsoftware-site
comparison app/views/timelog/.svn/text-base/_date_range.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | 94944d00e43c |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 <fieldset id="date-range" class="collapsible"> | |
2 <legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend> | |
3 <div> | |
4 <p> | |
5 <%= radio_button_tag 'period_type', '1', !@free_period %> | |
6 <%= select_tag 'period', options_for_period_select(params[:period]), | |
7 :onchange => 'this.form.onsubmit();', | |
8 :onfocus => '$("period_type_1").checked = true;' %> | |
9 </p> | |
10 <p> | |
11 <%= radio_button_tag 'period_type', '2', @free_period %> | |
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')), | |
14 :end => (text_field_tag('to', @to, :size => 10) + calendar_for('to'))) %> | |
15 </span> | |
16 </p> | |
17 </div> | |
18 </fieldset> | |
19 <p class="buttons"> | |
20 <%= link_to_remote l(:button_apply), | |
21 { :url => { }, | |
22 :update => "content", | |
23 :with => "Form.serialize('query_form')", | |
24 :method => :get | |
25 }, :class => 'icon icon-checked' %> | |
26 </p> | |
27 | |
28 <div class="tabs"> | |
29 <% url_params = @free_period ? { :from => @from, :to => @to } : { :period => params[:period] } %> | |
30 <ul> | |
31 <li><%= link_to(l(:label_details), url_params.merge({:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue }), | |
32 :class => (@controller.action_name == 'details' ? 'selected' : nil)) %></li> | |
33 <li><%= link_to(l(:label_report), url_params.merge({:controller => 'timelog', :action => 'report', :project_id => @project, :issue_id => @issue}), | |
34 :class => (@controller.action_name == 'report' ? 'selected' : nil)) %></li> | |
35 </ul> | |
36 </div> |