[Rt-commit] rt branch, 4.4/check-all-current-watchers, created. rt-4.4.1-138-g060e6e6
Shawn Moore
shawn at bestpractical.com
Wed Nov 30 16:23:05 EST 2016
The branch, 4.4/check-all-current-watchers has been created
at 060e6e69f817c9fdc2370dbef71096651c126a24 (commit)
- Log -----------------------------------------------------------------
commit 060e6e69f817c9fdc2370dbef71096651c126a24
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Wed Nov 30 21:15:12 2016 +0000
Add check-all boxes for each role in Current Watchers
This makes it easier to quickly delete all watchers of a certain role
in one click.
Fixes: T#175746
diff --git a/share/html/Ticket/Elements/EditPeople b/share/html/Ticket/Elements/EditPeople
index 4d2adc5..f6fe31b 100644
--- a/share/html/Ticket/Elements/EditPeople
+++ b/share/html/Ticket/Elements/EditPeople
@@ -90,17 +90,23 @@
<table>
<tr>
- <td class="label"><&|/l&>Requestors</&>:</td>
+ <td class="label">
+ <input type="checkbox" class="checkbox" onclick="setCheckbox(this, /^Ticket-DeleteWatcher-Type-Requestor-/)">
+ <&|/l&>Requestors</&>:</td>
<td class="value"><& EditWatchers, TicketObj => $Ticket, Watchers => $Ticket->Requestors &></td>
</tr>
<tr>
- <td class="label"><&|/l&>Cc</&>:</td>
+ <td class="label">
+ <input type="checkbox" class="checkbox" onclick="setCheckbox(this, /^Ticket-DeleteWatcher-Type-Cc-/)">
+ <&|/l&>Cc</&>:</td>
<td class="value"><& EditWatchers, TicketObj => $Ticket, Watchers => $Ticket->Cc &></td>
</tr>
<tr>
- <td class="label"><&|/l&>Admin Cc</&>:</td>
+ <td class="label">
+ <input type="checkbox" class="checkbox" onclick="setCheckbox(this, /^Ticket-DeleteWatcher-Type-AdminCc-/)">
+ <&|/l&>Admin Cc</&>:</td>
<td class="value"><& EditWatchers, TicketObj => $Ticket, Watchers => $Ticket->AdminCc &></td>
</tr>
@@ -109,7 +115,9 @@
% while (my $role = $multi_roles->Next) {
% my $group = $Ticket->RoleGroup($role->GroupType);
<tr>
- <td class="label"><% $role->Name %>:</td>
+ <td class="label">
+ <input type="checkbox" class="checkbox" onclick="setCheckbox(this, /^Ticket-DeleteWatcher-Type-RT::CustomRole-<% $role->Id %>-/)">
+ <% $role->Name %>:</td>
<td class="value"><& EditWatchers, TicketObj => $Ticket, Watchers => $group &></td>
</tr>
% }
-----------------------------------------------------------------------
More information about the rt-commit
mailing list