[Rt-commit] rt branch, 4.2/scrips-correspond-selectall-checkbox, created. rt-4.2.5-163-g33e8c68
Wallace Reis
wreis at bestpractical.com
Tue Jul 15 17:51:57 EDT 2014
The branch, 4.2/scrips-correspond-selectall-checkbox has been created
at 33e8c688a4c07a65486ad34bf1492e8e2972949f (commit)
- Log -----------------------------------------------------------------
commit 33e8c688a4c07a65486ad34bf1492e8e2972949f
Author: Wallace Reis <wreis at bestpractical.com>
Date: Tue Jul 15 18:48:09 2014 -0300
'Select All' checkbox for scrips correspondences/comments
At ticket reply page, we have the option to select/deselect who in the
list of people should receive a copy of the reply/comment. This aims to
add an 'all' checkbox which can select/deselect all of them at once.
diff --git a/share/html/Ticket/Elements/PreviewScrips b/share/html/Ticket/Elements/PreviewScrips
index 973fe0d..112335f 100644
--- a/share/html/Ticket/Elements/PreviewScrips
+++ b/share/html/Ticket/Elements/PreviewScrips
@@ -74,6 +74,8 @@ my %squelched = ProcessTransactionSquelching( \%ARGS );
% for my $type (qw(To Cc Bcc)) {
% my @addresses = $scrip->ActionObj->Action->$type();
% next unless @addresses;
+ <input type="checkbox" name="TxnSendMailToAll" value="1" checked="checked" onclick="setCheckbox(this,'TxnSendMailTo')">
+ <label for="TxnSendMailToAll"><b><% loc('All Users') %></b></label>
<ul>
% for my $addr (@addresses) {
<li>
diff --git a/share/html/Ticket/Elements/ShowSimplifiedRecipients b/share/html/Ticket/Elements/ShowSimplifiedRecipients
index bc662b2..87d6056 100644
--- a/share/html/Ticket/Elements/ShowSimplifiedRecipients
+++ b/share/html/Ticket/Elements/ShowSimplifiedRecipients
@@ -82,6 +82,8 @@ my %squelched = ProcessTransactionSquelching( \%ARGS );
<tr>
<td valign="top"><% $type %>:</td>
<td valign="top">
+<input type="checkbox" name="TxnSendMailToAll" value="1" checked="checked" onclick="setCheckbox(this,'TxnSendMailTo')">
+<label for="TxnSendMailToAll"><b><% loc('All Users') %></b></label>
% for my $addr (sort {$a->address cmp $b->address} values %{$headers{$type}}) {
% my $checked = not $squelched{$addr->address};
% $m->callback(CallbackName => 'BeforeAddress', Ticket => $TicketObj, Address => $addr, Type => $type, Checked => \$checked);
-----------------------------------------------------------------------
More information about the rt-commit
mailing list