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