[Rt-commit] rtir branch, 4.2-theme/migrate-to-elevator-themes, updated. 4.0.1rc1-100-g9a1988a8
Blaine Motsinger
blaine at bestpractical.com
Mon Sep 16 19:06:55 EDT 2019
The branch, 4.2-theme/migrate-to-elevator-themes has been updated
via 9a1988a8a77115bbb028e2c93aeb05d403316b89 (commit)
from 3833dcfe411ecab9a2d4374bc433563d1efd9fdc (commit)
Summary of changes:
html/RTIR/Elements/UpdateData | 29 +++++++----
html/RTIR/Incident/Elements/ReplyForm | 96 +++++++++++++++++++++--------------
2 files changed, 78 insertions(+), 47 deletions(-)
- Log -----------------------------------------------------------------
commit 9a1988a8a77115bbb028e2c93aeb05d403316b89
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Mon Sep 16 16:47:15 2019 -0500
Migrate RTIR/Incident/Reply to elevator themes
WIP
diff --git a/html/RTIR/Elements/UpdateData b/html/RTIR/Elements/UpdateData
index d75f56d7..69ad23dd 100644
--- a/html/RTIR/Elements/UpdateData
+++ b/html/RTIR/Elements/UpdateData
@@ -52,19 +52,29 @@
<& /Ticket/Elements/AddAttachments, %ARGS &>
% if ( $Ticket ) {
-<tr><td colspan="2"><& /RTIR/Elements/AttachReports, Ticket => $Ticket &></td></tr>
+<div class="form-row">
+ <div class="col-md-12">
+ <& /RTIR/Elements/AttachReports, Ticket => $Ticket &>
+ </div>
+</div>
% }
% if ( $GnuPGWidget ) {
-<tr><td> </td><td>
-<& /Elements/Crypt/SignEncryptWidget,
- self => $GnuPGWidget,
- TicketObj => $Ticket,
-&>
-</td></tr>
+<div class="form-row">
+ <div class="col-md-12">
+ <& /Elements/Crypt/SignEncryptWidget,
+ self => $GnuPGWidget,
+ TicketObj => $Ticket,
+ &>
+ </div>
+</div>
% }
-<tr><td class="label" valign="top"><&|/l&>Message</&>:</td><td>
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Message</&>:
+ </div>
+ <div class="value col-md-9">
<& /Articles/Elements/BeforeMessageBox, %ARGS &>
% $m->callback( %ARGS, CallbackPage => '/Ticket/Update.html', CallbackName => 'BeforeMessageBox' );
% if ( exists $ARGS{'UpdateContent'} ) {
@@ -73,7 +83,8 @@
% } else {
<& /Elements/MessageBox, Name => "UpdateContent", %ARGS &>
% }
-</td></tr>
+ </div>
+</div>
<%ARGS>
$Ticket => undef
diff --git a/html/RTIR/Incident/Elements/ReplyForm b/html/RTIR/Incident/Elements/ReplyForm
index f13e3952..0b9cb174 100644
--- a/html/RTIR/Incident/Elements/ReplyForm
+++ b/html/RTIR/Incident/Elements/ReplyForm
@@ -47,54 +47,74 @@
%# END BPS TAGGED BLOCK }}}
<&| /Widgets/TitleBox, title => $Title &>
-<table width="100%">
-<tr class="subject"><td class="label"><&|/l&>Subject</&>:</td>
-<td class="value"><i>(<&|/l&>uses subjects from tickets</&>)</i></td></tr>
-
-<tr><td class="label"><&|/l&>Update Type</&>:</td>
-<td class="value">
-<select name="UpdateType">
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Subject</&>:
+ </div>
+ <div class="value col-md-9">
+ <span class="current-value form-control"><i>(<&|/l&>uses subjects from tickets</&>)</i></span>
+ </div>
+</div>
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Update Type</&>:
+ </div>
+ <div class="value col-md-9">
+ <select class="selectpicker form-control" name="UpdateType">
% if( $AllowComment ) {
- <option value="private" <% $CommentDefault %>><&|/l&>Comments (Not sent to requestors)</&></option>
+ <option value="private" <% $CommentDefault %>><&|/l&>Comments (Not sent to requestors)</&></option>
% }
% if( $AllowResponse ) {
- <option value="response" <% $ResponseDefault %>><&|/l&>Response to requestors</&></option>
+ <option value="response" <% $ResponseDefault %>><&|/l&>Response to requestors</&></option>
% }
-</select>
-</td></tr>
+ </select>
+ </div>
+</div>
% if ( $TicketObj ) {
-<tr><td class="label"><&|/l&>Resolution</&>:</td>
-<td class="value">
-<& /RTIR/Elements/EditRTIRField,
- TicketObj => $TicketObj,
- QueueObj => $TicketObj->QueueObj,
- Name => 'Resolution',
- Default => (
- $TicketObj->FirstCustomFieldValue('Resolution') ||
- RT->Config->Get('RTIR_CustomFieldsDefaults')->{'Resolution'}{$Status}
- ),
- Rows => 1,
-&></td></tr>
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Resolution</&>:
+ </div>
+ <div class="value col-md-9">
+ <& /RTIR/Elements/EditRTIRField,
+ TicketObj => $TicketObj,
+ QueueObj => $TicketObj->QueueObj,
+ Name => 'Resolution',
+ Default => (
+ $TicketObj->FirstCustomFieldValue('Resolution') ||
+ RT->Config->Get('RTIR_CustomFieldsDefaults')->{'Resolution'}{$Status}
+ ),
+ Rows => 1,
+ &>
+ </div>
+</div>
% }
-
-<tr class="owner"><td class="label"><&|/l&>Owner</&>:</td>
-<td class="value">
-<& /Elements/SelectOwner,
- Name => "Owner",
- Default => $Owner || $session{'CurrentUser'}->Id || undef,
-&>
-<&|/l&>Worked</&>:
-<& /Elements/EditTimeValue,
- Name => 'UpdateTimeWorked',
- Default => $ARGS{'UpdateTimeWorked'} || '',
-&>
-</td></tr>
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Owner</&>:
+ </div>
+ <div class="value col-md-9">
+ <& /Elements/SelectOwner,
+ Name => "Owner",
+ Default => $Owner || $session{'CurrentUser'}->Id || undef,
+ &>
+ </div>
+</div>
+<div class="form-row">
+ <div class="label col-md-3">
+ <&|/l&>Worked</&>:
+ </div>
+ <div class="value col-md-9">
+ <& /Elements/EditTimeValue,
+ Name => 'UpdateTimeWorked',
+ Default => $ARGS{'UpdateTimeWorked'} || '',
+ &>
+ </div>
+</div>
<& /RTIR/Elements/UpdateData, %ARGS, Ticket => $TicketObj, QueueObj => $QueueObj &>
-</table>
-
</&>
<%INIT>
-----------------------------------------------------------------------
More information about the rt-commit
mailing list