##// END OF EJS Templates
Invalid HTML generated with ruby1.9....
Jean-Philippe Lang -
r8131:b86ca61b4992
parent child
Show More
@@ -1,45 +1,49
1 1 <h2><%= l(:label_bulk_edit_selected_time_entries) %></h2>
2 2
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>
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)}"), { :action => 'edit', :id => i })
6 )}.join("\n") %>
7 </ul>
4 8
5 9 <% form_tag(:action => 'bulk_update') do %>
6 10 <%= @time_entries.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
7 11 <div class="box tabular">
8 12 <div>
9 13 <p>
10 14 <label><%= l(:field_issue) %></label>
11 15 <%= text_field :time_entry, :issue_id, :size => 6 %>
12 16 </p>
13 17
14 18 <p>
15 19 <label><%= l(:field_spent_on) %></label>
16 20 <%= text_field :time_entry, :spent_on, :size => 10 %><%= calendar_for('time_entry_spent_on') %>
17 21 </p>
18 22
19 23 <p>
20 24 <label><%= l(:field_hours) %></label>
21 25 <%= text_field :time_entry, :hours, :size => 6 %>
22 26 </p>
23 27
24 28 <% if @available_activities.any? %>
25 29 <p>
26 30 <label><%= l(:field_activity) %></label>
27 31 <%= select_tag('time_entry[activity_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_activities, :id, :name)) %>
28 32 </p>
29 33 <% end %>
30 34
31 35 <p>
32 36 <label><%= l(:field_comments) %></label>
33 37 <%= text_field(:time_entry, :comments, :size => 100) %>
34 38 </p>
35 39
36 40 <% @custom_fields.each do |custom_field| %>
37 41 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('time_entry', custom_field, @projects) %></p>
38 42 <% end %>
39 43
40 44 <%= call_hook(:view_time_entries_bulk_edit_details_bottom, { :time_entries => @time_entries }) %>
41 45 </div>
42 46 </div>
43 47
44 48 <p><%= submit_tag l(:button_submit) %></p>
45 49 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now