diff options
author | Go MAEDA <maeda@farend.jp> | 2018-04-04 04:15:21 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-04-04 04:15:21 +0000 |
commit | 97a5e99de83a0f454e74b78a660b75a1dba75a4d (patch) | |
tree | f1bbd05b670484002470dc14738d384cf844893b /app/views/roles | |
parent | aaf0c81719ca18e063b8236c9f25cdf3780896f0 (diff) | |
download | redmine-97a5e99de83a0f454e74b78a660b75a1dba75a4d.tar.gz redmine-97a5e99de83a0f454e74b78a660b75a1dba75a4d.zip |
Adds toggle checkboxes feature to trackers permissions (#28242).
Patch by Mizuki ISHIKAWA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17256 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/roles')
-rw-r--r-- | app/views/roles/_form.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erb index f6852daee..d87c6a16b 100644 --- a/app/views/roles/_form.html.erb +++ b/app/views/roles/_form.html.erb @@ -78,8 +78,8 @@ <% end %> </thead> <tbody> - <tr> - <td class="name"><b><%= l(:label_tracker_all) %></b></td> + <tr class='permissions-all-trackers'> + <td class="name"><%= toggle_checkboxes_link('tr.permissions-all-trackers input[type="checkbox"]') %><b><%= l(:label_tracker_all) %></b></td> <% permissions.each do |permission| %> <td class="<%= "#{permission}_shown" %>"> <%= hidden_field_tag "role[permissions_all_trackers][#{permission}]", '0', :id => nil %> @@ -92,8 +92,8 @@ <% end %> </tr> <% Tracker.sorted.all.each do |tracker| %> - <tr> - <td class="name"><%= tracker.name %></td> + <tr class="permissions-tracker-<%= tracker.id %>"> + <td class="name"><%= toggle_checkboxes_link("tr.permissions-tracker-#{tracker.id} input:enabled") %><%= tracker.name %></td> <% permissions.each do |permission| %> <td class="<%= "#{permission}_shown" %>"><%= check_box_tag "role[permissions_tracker_ids][#{permission}][]", tracker.id, |