Mercurial > hg > soundsoftware-site
comparison .svn/pristine/83/8336e9f46dcb5eb005a350a17c0dd1aa44840422.svn-base @ 1295:622f24f53b42 redmine-2.3
Update to Redmine SVN revision 11972 on 2.3-stable branch
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:02:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1295:622f24f53b42 |
---|---|
1 <fieldset id="date-range" class="collapsible"> | |
2 <legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend> | |
3 <div> | |
4 <p> | |
5 <%= label_tag "period_type_list", l(:description_date_range_list), :class => "hidden-for-sighted" %> | |
6 <%= radio_button_tag 'period_type', '1', !@free_period, :onclick => '$("#from,#to").attr("disabled", true);$("#period").removeAttr("disabled");', :id => "period_type_list"%> | |
7 <%= select_tag 'period', options_for_period_select(params[:period]), | |
8 :onchange => 'this.form.submit();', | |
9 :onfocus => '$("#period_type_1").attr("checked", true);', | |
10 :disabled => @free_period %> | |
11 </p> | |
12 <p> | |
13 <%= label_tag "period_type_interval", l(:description_date_range_interval), :class => "hidden-for-sighted" %> | |
14 <%= radio_button_tag 'period_type', '2', @free_period, :onclick => '$("#from,#to").removeAttr("disabled");$("#period").attr("disabled", true);', :id => "period_type_interval" %> | |
15 <%= l(:label_date_from_to, | |
16 :start => ((label_tag "from", l(:description_date_from), :class => "hidden-for-sighted") + | |
17 text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')), | |
18 :end => ((label_tag "to", l(:description_date_to), :class => "hidden-for-sighted") + | |
19 text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))).html_safe %> | |
20 </p> | |
21 </div> | |
22 </fieldset> | |
23 <p class="buttons"> | |
24 <%= link_to_function l(:button_apply), '$("#query_form").submit()', :class => 'icon icon-checked' %> | |
25 <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %> | |
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 => 'index', :project_id => @project, :issue_id => @issue }), | |
32 :class => (action_name == 'index' ? '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 => (action_name == 'report' ? 'selected' : nil)) %></li> | |
35 </ul> | |
36 </div> | |
37 | |
38 <%= javascript_tag do %> | |
39 $('#from, #to').change(function(){ | |
40 $('#period_type_interval').attr('checked', true); $('#from,#to').removeAttr('disabled'); $('#period').attr('disabled', true); | |
41 }); | |
42 <% end %> |