Feature #29080 closed
Add check/uncheck all icon in "Copy" section on copy_project page
Added by Go MAEDA over 8 years ago.
Updated over 8 years ago.
Description
In "Copy" section on copy_project page, which is used to select objects to copy, you cannot toggle all checkboxes at one click.
I think the section also should have a green tick icon to check/uncheck all checkboxes.
Copied from Feature #29053 : Add check/unchek all icon in "Email notifications" section on "My account" page added
I think that you can add icons with the following code.
diff --git a/app/views/projects/copy.html.erb b/app/views/projects/copy.html.erb
index ee725ebd97..f5524b9658 100644
--- a/app/views/projects/copy.html.erb
+++ b/app/views/projects/copy.html.erb
@@ -3,7 +3,7 @@
<%= labelled_form_for @project, :url => { :action => "copy" } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
-<fieldset class="box tabular"><legend><%= l(:button_copy) %></legend>
+<fieldset class="box tabular"><legend><%= toggle_checkboxes_link('.box input[type="checkbox"][name="only[]"]') %><%= l(:button_copy) %></legend>
<label class="block"><%= check_box_tag 'only[]', 'members', true, :id => nil %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
<label class="block"><%= check_box_tag 'only[]', 'versions', true, :id => nil %> <%= l(:label_version_and_files, @source_project.versions.count) %></label>
<label class="block"><%= check_box_tag 'only[]', 'issue_categories', true, :id => nil %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label>
Target version set to 4.1.0
LGTM. Setting target version to 4.1.0.
Status changed from New to Closed
Assignee set to Go MAEDA
Target version changed from 4.1.0 to 4.0.0
Resolution set to Fixed
Committed. Thank you for improving Redmine.
Subject changed from Add check/unchek all icon in "Copy" section on copy_project page to Add check/uncheck all icon in "Copy" section on copy_project page
Also available in: PDF
Atom