[Rt-commit] rtir branch, 5.0/fix-messagebox-colors, created. 4.0.1rc1-151-g01ed27f4
Blaine Motsinger
blaine at bestpractical.com
Fri May 29 21:30:41 EDT 2020
The branch, 5.0/fix-messagebox-colors has been created
at 01ed27f43689da8d101ea97f1eeeb543ee289444 (commit)
- Log -----------------------------------------------------------------
commit 7252d06da97132e6b1b4248eddedb5d6a6b20323
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Fri May 29 18:35:43 2020 -0500
Fix messagebox color for RTIR/Update.html
This commits makes the messagebox colors again work consistently
with RT.
diff --git a/html/RTIR/Elements/UpdateData b/html/RTIR/Elements/UpdateData
index 0941c315..1ac236ee 100644
--- a/html/RTIR/Elements/UpdateData
+++ b/html/RTIR/Elements/UpdateData
@@ -70,8 +70,9 @@
</div>
% }
-<div class="form-group">
<& /Articles/Elements/BeforeMessageBox, %ARGS &>
+<div class="form-group">
+ <div class="messagebox-container action-<% $type %>">
% $m->callback( %ARGS, CallbackPage => '/Ticket/Update.html', CallbackName => 'BeforeMessageBox' );
% if ( exists $ARGS{'UpdateContent'} ) {
% delete $ARGS{'QuoteTransaction'};
@@ -79,8 +80,15 @@
% } else {
<& /Elements/MessageBox, Name => "UpdateContent", %ARGS &>
% }
+ </div>
</div>
+<%INIT>
+my $type = $ARGS{'UpdateType'} ? $ARGS{'UpdateType'} :
+ lc $ARGS{'Action'} eq 'respond' ? 'response' :
+ lc $ARGS{'Action'} eq 'comment' ? 'private' :
+ 'none' ;
+</%INIT>
<%ARGS>
$Ticket => undef
$UpdateCc => ''
diff --git a/html/RTIR/Update.html b/html/RTIR/Update.html
index 6d6a4a86..0f475b5d 100644
--- a/html/RTIR/Update.html
+++ b/html/RTIR/Update.html
@@ -69,7 +69,7 @@
<&|/l&>Update Type</&>:
</div>
<div class="value col-md-9">
- <select class="selectpicker form-control" name="UpdateType">
+ <select class="selectpicker form-control" name="UpdateType" id="UpdateType">
% if ($CanComment) {
<option value="private" <% $CommentDefault || '' %>><&|/l&>Comments (Not sent to requestors)</&></option>
% }
commit 01ed27f43689da8d101ea97f1eeeb543ee289444
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Fri May 29 20:01:01 2020 -0500
Fix messagebox color for RTIR/Incident/Reply/index.html
This commits makes the messagebox colors again work consistently
with RT.
diff --git a/html/RTIR/Incident/Elements/ReplyForm b/html/RTIR/Incident/Elements/ReplyForm
index 832f8144..0563bd7f 100644
--- a/html/RTIR/Incident/Elements/ReplyForm
+++ b/html/RTIR/Incident/Elements/ReplyForm
@@ -60,7 +60,7 @@
<&|/l&>Update Type</&>:
</div>
<div class="value col-md-9">
- <select class="selectpicker form-control" name="UpdateType">
+ <select class="selectpicker form-control" name="UpdateType" id="UpdateType">
% if( $AllowComment ) {
<option value="private" <% $CommentDefault %>><&|/l&>Comments (Not sent to requestors)</&></option>
% }
@@ -113,7 +113,7 @@
</div>
</div>
-<& /RTIR/Elements/UpdateData, %ARGS, Ticket => $TicketObj, QueueObj => $QueueObj &>
+<& /RTIR/Elements/UpdateData, %ARGS, Ticket => $TicketObj, QueueObj => $QueueObj, Action => $Action &>
</&>
<%INIT>
diff --git a/html/RTIR/Incident/Reply/index.html b/html/RTIR/Incident/Reply/index.html
index 3367279d..43c4846a 100644
--- a/html/RTIR/Incident/Reply/index.html
+++ b/html/RTIR/Incident/Reply/index.html
@@ -132,6 +132,7 @@
TicketObj => $IncidentObj,
Status => $Status,
GnuPGWidget => $gnupg_widget,
+ Action => $Action,
&>
<div class="form-row">
@@ -286,7 +287,7 @@ $IncidentObj->CurrentUser->AddRecentlyViewedTicket($IncidentObj)
$id => undef
$All => 0
$Status => ''
-$Action => 'Correspond'
+$Action => 'Respond'
$Query => ''
$Format => RT->Config->Get('RTIRSearchResultFormats')->{'BulkReply'}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list