From f6c5426605d721a4e1dca0315ed031d617b85212 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 4 Apr 2011 11:52:33 +0000 Subject: [PATCH] add view for bulk edit time entries (#7996). Contributed by Adam Soltys. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5311 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/timelog/bulk_edit.rhtml | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 app/views/timelog/bulk_edit.rhtml diff --git a/app/views/timelog/bulk_edit.rhtml b/app/views/timelog/bulk_edit.rhtml new file mode 100644 index 000000000..3045e2569 --- /dev/null +++ b/app/views/timelog/bulk_edit.rhtml @@ -0,0 +1,49 @@ +

<%= l(:label_bulk_edit_selected_time_entries) %>

+ + + +<% form_tag(:action => 'bulk_update') do %> +<%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> +
+
+ <%= l(:label_change_properties) %> +
+

+ + <%= text_field :time_entry, :issue_id, :size => 6 %> +

+ +

+ + <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %> +

+ +

+ + <%= text_field :time_entry, :hours, :size => 6 %> +

+ + <% if @available_activities.any? %> +

+ + <%= select_tag('time_entry[activity_id]', "" + options_from_collection_for_select(@available_activities, :id, :name)) %> +

+ <% end %> + +

+ + <%= text_field(:time_entry, :comments, :size => 100) %> +

+ + <% @custom_fields.each do |custom_field| %> +

<%= custom_field_tag_for_bulk_edit('time_entry', custom_field) %>

+ <% end %> + + <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %> +
+ +
+
+ +

<%= submit_tag l(:button_submit) %>

+<% end %> -- 2.39.5