annotate .svn/pristine/b1/b1f1c9a5937a6d164b84ffb6897cf36e2e131495.svn-base @ 1327:287f201c2802 redmine-2.2-integration

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