From: Toshi MARUYAMA Date: Mon, 4 Apr 2011 11:53:55 +0000 (+0000) Subject: add bulk edit items and context menu in time entries list view (#7996). X-Git-Tag: 1.2.0~533 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2029df01ae9b2827db74dc5ad78ac9e9d21a5c38;p=redmine.git add bulk edit items and context menu in time entries list view (#7996). get bulk edit form action working by mapping permissions. Contributed by Adam Soltys. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5314 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/timelog/_list.rhtml b/app/views/timelog/_list.rhtml index 28f1f5239..defad1203 100644 --- a/app/views/timelog/_list.rhtml +++ b/app/views/timelog/_list.rhtml @@ -1,6 +1,14 @@ +<% form_tag({}) do -%> +<%= hidden_field_tag 'back_url', url_for(params) %> + <%= 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 @@ <% entries.each do |entry| -%> -"> + hascontextmenu"> + @@ -39,3 +48,6 @@ <% end -%>
+ <%= link_to image_tag('toggle_check.png'), + {}, + :onclick => 'toggleIssuesSelection(Element.up(this, "form")); return false;', + :title => "#{l(:button_check_all)}/#{l(:button_uncheck_all)}" %> +
<%= check_box_tag("ids[]", entry.id, false, :id => nil) %> <%= format_date(entry.spent_on) %> <%=h entry.user %> <%=h entry.activity %>
+<% end -%> + +<%= context_menu time_entries_context_menu_path %>