diff options
author | Go MAEDA <maeda@farend.jp> | 2020-02-06 00:44:06 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-02-06 00:44:06 +0000 |
commit | 29433771b45319a0b50f182f0dcaf72db1275a30 (patch) | |
tree | 83fa19c4b6dbcf87886bdd36d42b16ebd808c7e1 | |
parent | 73f97d4120a1524714eafc7d628eff3c4c221d83 (diff) | |
download | redmine-29433771b45319a0b50f182f0dcaf72db1275a30.tar.gz redmine-29433771b45319a0b50f182f0dcaf72db1275a30.zip |
Add Check all / Uncheck all button to filters in permissions report (#32672).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@19497 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/roles/permissions.html.erb | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/roles/permissions.html.erb b/app/views/roles/permissions.html.erb index 0d57d6e38..9cd71b499 100644 --- a/app/views/roles/permissions.html.erb +++ b/app/views/roles/permissions.html.erb @@ -5,12 +5,15 @@ <legend onclick="toggleFieldset(this);" class="icon icon-collapsed"><%= l(:label_filter_plural) %></legend> <div style="display: none;"> <%= form_tag({}, :method => :get) do %> - <% Role.sorted.to_a.each do |role| %> - <label> - <%= check_box_tag "ids[]", role.id, @roles.include?(role) %> - <%= role.name %> - </label> - <% end %> + <fieldset> + <legend><%= toggle_checkboxes_link('#filters input[type=checkbox]:enabled') %></legend> + <% Role.sorted.to_a.each do |role| %> + <label> + <%= check_box_tag "ids[]", role.id, @roles.include?(role) %> + <%= role.name %> + </label> + <% end %> + </fieldset> <p> <%= submit_tag l(:button_apply), :name => nil %> <%= link_to l(:button_clear), permissions_roles_path, :class => 'icon icon-reload' %> |