annotate .svn/pristine/b1/b1f1c9a5937a6d164b84ffb6897cf36e2e131495.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
Chris@1295 2
Chris@1295 3 <ul>
Chris@1295 4 <%= @time_entries.collect {|i| content_tag('li',
Chris@1295 5 link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} - #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"),
Chris@1295 6 { :action => 'edit', :id => i })
Chris@1295 7 )}.join("\n").html_safe %>
Chris@1295 8 </ul>
Chris@1295 9
Chris@1295 10 <%= form_tag(:action => 'bulk_update') do %>
Chris@1295 11 <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
Chris@1295 12 <div class="box tabular">
Chris@1295 13 <div>
Chris@1295 14 <p>
Chris@1295 15 <label><%= l(:field_issue) %></label>
Chris@1295 16 <%= text_field :time_entry, :issue_id, :size => 6 %>
Chris@1295 17 </p>
Chris@1295 18
Chris@1295 19 <p>
Chris@1295 20 <label><%= l(:field_spent_on) %></label>
Chris@1295 21 <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
Chris@1295 22 </p>
Chris@1295 23
Chris@1295 24 <p>
Chris@1295 25 <label><%= l(:field_hours) %></label>
Chris@1295 26 <%= text_field :time_entry, :hours, :size => 6 %>
Chris@1295 27 </p>
Chris@1295 28
Chris@1295 29 <% if @available_activities.any? %>
Chris@1295 30 <p>
Chris@1295 31 <label><%= l(:field_activity) %></label>
Chris@1295 32 <%= select_tag('time_entry[activity_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@available_activities, :id, :name)) %>
Chris@1295 33 </p>
Chris@1295 34 <% end %>
Chris@1295 35
Chris@1295 36 <p>
Chris@1295 37 <label><%= l(:field_comments) %></label>
Chris@1295 38 <%= text_field(:time_entry, :comments, :size => 100) %>
Chris@1295 39 </p>
Chris@1295 40
Chris@1295 41 <% @custom_fields.each do |custom_field| %>
Chris@1295 42 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %></p>
Chris@1295 43 <% end %>
Chris@1295 44
Chris@1295 45 <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %>
Chris@1295 46 </div>
Chris@1295 47 </div>
Chris@1295 48
Chris@1295 49 <p><%= submit_tag l(:button_submit) %></p>
Chris@1295 50 <% end %>