Project

General

Profile

Patch #27807 » 0005-replace-check_all_links-in-new-tracker-form-with-too.patch

Marius BĂLTEANU, 2017-12-16 11:04

View differences:

app/views/trackers/_form.html.erb
45 45

  
46 46
<div class="splitcontentright">
47 47
<% if @projects.any? %>
48
<fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend>
48
<fieldset class="box" id="tracker_project_ids"><legend><%= toggle_checkboxes_link("#tracker_project_ids input[type=checkbox]") %><%= l(:label_project_plural) %></legend>
49 49
<% project_ids = @tracker.project_ids.to_a %>
50 50
<%= render_project_nested_lists(@projects) do |p|
51 51
  content_tag('label', check_box_tag('tracker[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + h(p))
52 52
end %>
53 53
<%= hidden_field_tag('tracker[project_ids][]', '', :id => nil) %>
54
<p><%= check_all_links 'tracker_project_ids' %></p>
55 54
</fieldset>
56 55
<% end %>
57 56
</div>
(1-1/4)