@@ -0,0 +1,49 | |||
|
1 | <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2> | |
|
2 | ||
|
3 | <ul><%= @time_entries.collect {|i| content_tag('li', link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} -- #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"), { :action => 'edit', :id => i }))} %></ul> | |
|
4 | ||
|
5 | <% form_tag(:action => 'bulk_update') do %> | |
|
6 | <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join %> | |
|
7 | <div class="box tabular"> | |
|
8 | <fieldset class="attributes"> | |
|
9 | <legend><%= l(:label_change_properties) %></legend> | |
|
10 | <div> | |
|
11 | <p> | |
|
12 | <label><%= l(:field_issue) %></label> | |
|
13 | <%= text_field :time_entry, :issue_id, :size => 6 %> | |
|
14 | </p> | |
|
15 | ||
|
16 | <p> | |
|
17 | <label><%= l(:field_spent_on) %></label> | |
|
18 | <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %> | |
|
19 | </p> | |
|
20 | ||
|
21 | <p> | |
|
22 | <label><%= l(:field_hours) %></label> | |
|
23 | <%= text_field :time_entry, :hours, :size => 6 %> | |
|
24 | </p> | |
|
25 | ||
|
26 | <% if @available_activities.any? %> | |
|
27 | <p> | |
|
28 | <label><%= l(:field_activity) %></label> | |
|
29 | <%= select_tag('time_entry[activity_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_activities, :id, :name)) %> | |
|
30 | </p> | |
|
31 | <% end %> | |
|
32 | ||
|
33 | <p> | |
|
34 | <label><%= l(:field_comments) %></label> | |
|
35 | <%= text_field(:time_entry, :comments, :size => 100) %> | |
|
36 | </p> | |
|
37 | ||
|
38 | <% @custom_fields.each do |custom_field| %> | |
|
39 | <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field) %></p> | |
|
40 | <% end %> | |
|
41 | ||
|
42 | <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %> | |
|
43 | </div> | |
|
44 | ||
|
45 | </fieldset> | |
|
46 | </div> | |
|
47 | ||
|
48 | <p><%= submit_tag l(:button_submit) %></p> | |
|
49 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now