diff --git a/app/views/trackers/_form.html.erb b/app/views/trackers/_form.html.erb index 3d71d7694..3f5b88acb 100644 --- a/app/views/trackers/_form.html.erb +++ b/app/views/trackers/_form.html.erb @@ -46,13 +46,12 @@
<% if @projects.any? %> -
<%= l(:label_project_plural) %> +
<%= toggle_checkboxes_link("#tracker_project_ids input[type=checkbox]") %><%= l(:label_project_plural) %> <% project_ids = @tracker.project_ids.to_a %> <%= render_project_nested_lists(@projects) do |p| content_tag('label', check_box_tag('tracker[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + h(p)) end %> <%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %> -

<%= check_all_links 'tracker_project_ids' %>

<% end %>