To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / b1 / b1f1c9a5937a6d164b84ffb6897cf36e2e131495.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.65 KB)
| 1 | 1296:038ba2d95de8 | Chris | <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2> |
|---|---|---|---|
| 2 | |||
| 3 | <ul> |
||
| 4 | <%= @time_entries.collect {|i| content_tag('li',
|
||
| 5 | link_to(h("#{i.spent_on.strftime("%Y-%m-%d")} - #{i.project}: #{l(:label_f_hour_plural, :value => i.hours)}"),
|
||
| 6 | { :action => 'edit', :id => i })
|
||
| 7 | )}.join("\n").html_safe %>
|
||
| 8 | </ul> |
||
| 9 | |||
| 10 | <%= form_tag(:action => 'bulk_update') do %> |
||
| 11 | <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %>
|
||
| 12 | <div class="box tabular"> |
||
| 13 | <div> |
||
| 14 | <p> |
||
| 15 | <label><%= l(:field_issue) %></label> |
||
| 16 | <%= text_field :time_entry, :issue_id, :size => 6 %> |
||
| 17 | </p> |
||
| 18 | |||
| 19 | <p> |
||
| 20 | <label><%= l(:field_spent_on) %></label> |
||
| 21 | <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
|
||
| 22 | </p> |
||
| 23 | |||
| 24 | <p> |
||
| 25 | <label><%= l(:field_hours) %></label> |
||
| 26 | <%= text_field :time_entry, :hours, :size => 6 %> |
||
| 27 | </p> |
||
| 28 | |||
| 29 | <% if @available_activities.any? %> |
||
| 30 | <p> |
||
| 31 | <label><%= l(:field_activity) %></label> |
||
| 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)) %>
|
||
| 33 | </p> |
||
| 34 | <% end %> |
||
| 35 | |||
| 36 | <p> |
||
| 37 | <label><%= l(:field_comments) %></label> |
||
| 38 | <%= text_field(:time_entry, :comments, :size => 100) %> |
||
| 39 | </p> |
||
| 40 | |||
| 41 | <% @custom_fields.each do |custom_field| %> |
||
| 42 | <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %></p>
|
||
| 43 | <% end %> |
||
| 44 | |||
| 45 | <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %>
|
||
| 46 | </div> |
||
| 47 | </div> |
||
| 48 | |||
| 49 | <p><%= submit_tag l(:button_submit) %></p> |
||
| 50 | <% end %> |