annotate app/views/timelog/bulk_edit.html.erb @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children dffacf8a6908
rev   line source
Chris@441 1 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
Chris@441 2
Chris@1464 3 <ul id="bulk-selection">
Chris@1464 4 <% @time_entries.each do |entry| %>
Chris@1464 5 <%= content_tag 'li',
Chris@1464 6 link_to("#{format_date(entry.spent_on)} - #{entry.project}: #{l(:label_f_hour_plural, :value => entry.hours)}", edit_time_entry_path(entry)) %>
Chris@1464 7 <% end %>
Chris@1115 8 </ul>
Chris@441 9
Chris@1464 10 <%= form_tag(bulk_update_time_entries_path, :id => 'bulk_edit_form') do %>
Chris@1115 11 <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
Chris@441 12 <div class="box tabular">
Chris@441 13 <div>
Chris@441 14 <p>
Chris@441 15 <label><%= l(:field_issue) %></label>
Chris@441 16 <%= text_field :time_entry, :issue_id, :size => 6 %>
Chris@441 17 </p>
Chris@441 18
Chris@441 19 <p>
Chris@441 20 <label><%= l(:field_spent_on) %></label>
Chris@441 21 <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
Chris@441 22 </p>
Chris@441 23
Chris@441 24 <p>
Chris@441 25 <label><%= l(:field_hours) %></label>
Chris@441 26 <%= text_field :time_entry, :hours, :size => 6 %>
Chris@441 27 </p>
Chris@441 28
Chris@441 29 <% if @available_activities.any? %>
Chris@441 30 <p>
Chris@441 31 <label><%= l(:field_activity) %></label>
Chris@1115 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@441 33 </p>
Chris@441 34 <% end %>
Chris@441 35
Chris@441 36 <p>
Chris@441 37 <label><%= l(:field_comments) %></label>
Chris@441 38 <%= text_field(:time_entry, :comments, :size => 100) %>
Chris@441 39 </p>
Chris@441 40
Chris@441 41 <% @custom_fields.each do |custom_field| %>
Chris@441 42 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %></p>
Chris@441 43 <% end %>
Chris@441 44
Chris@441 45 <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %>
Chris@441 46 </div>
Chris@441 47 </div>
Chris@441 48
Chris@441 49 <p><%= submit_tag l(:button_submit) %></p>
Chris@441 50 <% end %>