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