Vote #79387
完了Add check/uncheck all icon in "Copy" section on copy_project page
0%
説明
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.
journals
--------------------------------------------------------------------------------
I think that you can add icons with the following code.
<pre>
<code class="diff">
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>
</code>
</pre>
--------------------------------------------------------------------------------
LGTM. Setting target version to 4.1.0.
--------------------------------------------------------------------------------
Committed. Thank you for improving Redmine.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
copied_to,Closed,29053,Add check/unchek all icon in "Email notifications" section on "My account" page