Revision 441:cbce1fd3b1b7 app/views/timelog/.svn/text-base

View differences:

app/views/timelog/.svn/text-base/_date_range.rhtml.svn-base
2 2
<legend onclick="toggleFieldset(this);"><%= l(:label_date_range) %></legend>
3 3
<div>
4 4
<p>
5
<%= radio_button_tag 'period_type', '1', !@free_period %>
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
                         :onchange => 'this.form.onsubmit();',
8
                         :onfocus => '$("period_type_1").checked = true;' %>
7
                         :onchange => 'this.form.submit();',
8
                         :onfocus => '$("period_type_1").checked = true;',
9
                         :disabled => @free_period %>
9 10
</p>
10 11
<p>
11
<%= radio_button_tag 'period_type', '2', @free_period %>
12
<%= radio_button_tag 'period_type', '2', @free_period, :onclick => 'Form.Element.enable("from");Form.Element.enable("to");Form.Element.disable("period");' %>
12 13
<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'))) %>
14
<%= l(:label_date_from_to, :start => (text_field_tag('from', @from, :size => 10, :disabled => !@free_period) + calendar_for('from')),
15
													 :end => (text_field_tag('to', @to, :size => 10, :disabled => !@free_period) + calendar_for('to'))) %>
15 16
</span>
16 17
</p>
17 18
</div>
18 19
</fieldset>
19 20
<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' %>
21
	<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
22
  <%= link_to l(:button_clear), {:controller => controller_name, :action => action_name, :project_id => @project, :issue_id => @issue}, :class => 'icon icon-reload' %>
26 23
</p>
27 24

  
28 25
<div class="tabs">
app/views/timelog/.svn/text-base/_list.rhtml.svn-base
1
<% form_tag({}) do -%>	
2
<%= hidden_field_tag 'back_url', url_for(params) %>
1 3
<table class="list time-entries">
2 4
<thead>
3 5
<tr>
6
<th class="checkbox hide-when-print">
7
  <%= link_to image_tag('toggle_check.png'), 
8
    {}, 
9
    :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', 
10
    :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %>
11
</th>
4 12
<%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %>
5 13
<%= sort_header_tag('user', :caption => l(:label_member)) %>
6 14
<%= sort_header_tag('activity', :caption => l(:label_activity)) %>
......
13 21
</thead>
14 22
<tbody>
15 23
<% entries.each do |entry| -%>
16
<tr class="time-entry <%= cycle("odd", "even") %>">
24
<tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu">
25
<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td>
17 26
<td class="spent_on"><%= format_date(entry.spent_on) %></td>
18 27
<td class="user"><%=h entry.user %></td>
19 28
<td class="activity"><%=h entry.activity %></td>
......
39 48
<% end -%>
40 49
</tbody>
41 50
</table>
51
<% end -%>
52

  
53
<%= context_menu time_entries_context_menu_path %>
app/views/timelog/.svn/text-base/index.api.rsb.svn-base
1
api.array :time_entries do
1
api.array :time_entries, api_meta(:total_count => @entry_count, :offset => @offset, :limit => @limit) do
2 2
  @entries.each do |time_entry|
3 3
    api.time_entry do
4 4
      api.id time_entry.id
app/views/timelog/.svn/text-base/index.html.erb.svn-base
6 6

  
7 7
<h2><%= l(:label_spent_time) %></h2>
8 8

  
9
<% form_remote_tag( :url => {}, :html => {:method => :get, :id => 'query_form'}, :method => :get, :update => 'content' ) do %>
10
<%# TOOD: remove the project_id and issue_id hidden fields, that information is
11
already in the URI %>
12
<%= hidden_field_tag('project_id', params[:project_id]) if @project %>
13
<%= hidden_field_tag 'issue_id', params[:issue_id] if @issue %>
9
<% form_tag({:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}, :method => :get, :id => 'query_form') do %>
14 10
<%= render :partial => 'date_range' %>
15 11
<% end %>
16 12

  

Also available in: Unified diff