Feature #29080

Add check/uncheck all icon in "Copy" section on copy_project page

Added by Go MAEDA 3 months ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:UI
Target version:4.0.0
Resolution:Fixed

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.


Related issues

Copied from Redmine - Feature #29053: Add check/unchek all icon in "Email notifications" sectio... Closed

Associated revisions

Revision 17417
Added by Go MAEDA 3 months ago

Add check/unchek all icon in "Copy" section on copy_project page (#29080).

Patch by Mizuki ISHIKAWA.

History

#1 Updated by Go MAEDA 3 months ago

  • Copied from Feature #29053: Add check/unchek all icon in "Email notifications" section on "My account" page added

#2 Updated by Mizuki ISHIKAWA 3 months ago

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>

#3 Updated by Go MAEDA 3 months ago

  • Target version set to 4.1.0

LGTM. Setting target version to 4.1.0.

#4 Updated by Go MAEDA 3 months ago

  • 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.

#5 Updated by Marius BALTEANU 3 months ago

  • 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: Atom PDF