Patch #27807 » 0005-replace-check_all_links-in-new-tracker-form-with-too.patch
| app/views/trackers/_form.html.erb | ||
|---|---|---|
|
<div class="splitcontentright">
|
||
|
<% if @projects.any? %>
|
||
|
<fieldset class="box" id="tracker_project_ids"><legend><%= l(:label_project_plural) %></legend>
|
||
|
<fieldset class="box" id="tracker_project_ids"><legend><%= toggle_checkboxes_link("#tracker_project_ids input[type=checkbox]") %><%= l(:label_project_plural) %></legend>
|
||
|
<% 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) %>
|
||
|
<p><%= check_all_links 'tracker_project_ids' %></p>
|
||
|
</fieldset>
|
||
|
<% end %>
|
||
|
</div>
|
||