Mercurial > hg > soundsoftware-site
diff app/views/timelog/.svn/text-base/_list.rhtml.svn-base @ 514:7eba09d624db live
Merge
author | Chris Cannam |
---|---|
date | Thu, 14 Jul 2011 10:50:53 +0100 |
parents | cbce1fd3b1b7 |
children |
line wrap: on
line diff
--- a/app/views/timelog/.svn/text-base/_list.rhtml.svn-base Thu Jul 14 10:46:20 2011 +0100 +++ b/app/views/timelog/.svn/text-base/_list.rhtml.svn-base Thu Jul 14 10:50:53 2011 +0100 @@ -1,6 +1,14 @@ +<% form_tag({}) do -%> +<%= hidden_field_tag 'back_url', url_for(params) %> <table class="list time-entries"> <thead> <tr> +<th class="checkbox hide-when-print"> + <%= link_to image_tag('toggle_check.png'), + {}, + :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> +</th> <%= sort_header_tag('spent_on', :caption => l(:label_date), :default_order => 'desc') %> <%= sort_header_tag('user', :caption => l(:label_member)) %> <%= sort_header_tag('activity', :caption => l(:label_activity)) %> @@ -13,7 +21,8 @@ </thead> <tbody> <% entries.each do |entry| -%> -<tr class="time-entry <%= cycle("odd", "even") %>"> +<tr class="time-entry <%= cycle("odd", "even") %> hascontextmenu"> +<td class="checkbox hide-when-print"><%= check_box_tag("ids[]", entry.id, false, :id => nil) %></td> <td class="spent_on"><%= format_date(entry.spent_on) %></td> <td class="user"><%=h entry.user %></td> <td class="activity"><%=h entry.activity %></td> @@ -39,3 +48,6 @@ <% end -%> </tbody> </table> +<% end -%> + +<%= context_menu time_entries_context_menu_path %>