[Rt-commit] rtir branch, 4.2-theme/migrate-to-elevator-themes, updated. 4.0.1rc1-97-g8759c1c6

Blaine Motsinger blaine at bestpractical.com
Wed Sep 11 19:57:25 EDT 2019


The branch, 4.2-theme/migrate-to-elevator-themes has been updated
       via  8759c1c6cfcf77bd41f3285aa0077d6214d466de (commit)
      from  30b221adcbdff0cdf22ba34f4fa629583c53a6c6 (commit)

Summary of changes:
 html/RTIR/Create.html             | 172 ++++++++++++++++++++++----------------
 html/RTIR/Elements/SelectIncident |  49 ++++++-----
 2 files changed, 131 insertions(+), 90 deletions(-)

- Log -----------------------------------------------------------------
commit 8759c1c6cfcf77bd41f3285aa0077d6214d466de
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Wed Sep 11 18:57:14 2019 -0500

    Migrate RTIR/Create to elevator themes

diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index 19785a14..203ec3b3 100644
--- a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -81,13 +81,16 @@
 
 <div id="ticket-create-metadata">
 <&| /Widgets/TitleBox, title => loc("Basics"), class=>'ticket-info-basics' &>
-<table width="100%" border="0">
 
 % if ( $SplitObj ) {
-  <tr class="split">
-    <td class="label"><&|/l&>Split from</&>:</td>
-    <td class="value"><% $SplitObj->id %></td>
-  </tr>
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Split from</&>:
+    </div>
+    <div class="value col-md-9">
+      <span class="current-value form-control"><% $SplitObj->id %></span>
+    </div>
+  </div>
 % }
 
   <& /RTIR/Elements/SelectIncident,
@@ -104,6 +107,7 @@
             comp => '/Ticket/Elements/ShowQueue',
             args => {
                 QueueObj => $QueueObj,
+                Wrap => 1,
             },
         },
         {
@@ -153,7 +157,7 @@
   <& /Ticket/Elements/EditTransactionCustomFields,
     %ARGS, QueueObj => $QueueObj, InTable => 1,
   &>
-</table></&>
+</&>
 
 <& /Elements/EditCustomFieldCustomGroupings,
     %ARGS,
@@ -163,7 +167,7 @@
     Groupings => [ RT::CustomField->CustomGroupings('RTIR::Ticket'), '' ],
 &>
 <&| /Widgets/TitleBox, title => loc("Dates"), class=>'ticket-info-dates' &>
-<table width="100%" border="0">
+
 <& /Ticket/Elements/EditBasics,
     InTable => 1,
     QueueObj => $QueueObj,
@@ -180,10 +184,9 @@
         },
     ],
 &>
-</table></&>
+</&>
 
 <&| /Widgets/TitleBox, title => loc("Time"), class=>'ticket-info-time' &>
-<table width="100%" border="0">
 <& /Ticket/Elements/EditBasics,
     InTable => 1,
     QueueObj => $QueueObj,
@@ -214,7 +217,7 @@
         },
     ],
 &>
-</table></&>
+</&>
 
 % if ( RT::IR->IsInvestigationQueue($QueueObj) && @IncidentObj ) {
   <& /RTIR/Elements/AttachReports, Ticket => \@IncidentObj &>
@@ -225,82 +228,111 @@
 
 <div id="ticket-create-message">
 <&| /Widgets/TitleBox, title => $Title, class => 'messagedetails' &>
-<table width="100%" border="0">
 
-  <tr>
-    <td class="label"><&|/l&>Correspondents</&>:</td>
-    <td class="value"><& /Elements/EmailInput,
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Correspondents</&>:
+    </div>
+    <div class="value col-md-9">
+      <& /Elements/EmailInput,
         Name => 'Requestors', Default => $ARGS{'Requestors'}, Size => undef,
-    &></td>
-  </tr>
-  <tr>
-    <td class="label"> </td>
-    <td class="comment">
-      <input type="checkbox" name="SkipNotification" value="Requestors" <% (grep $_ eq 'Requestors', @SkipNotification)? 'checked': '' %> />
-      <&|/l&>Don't send any emails to correspondents.</&>
-    </td>
-  </tr>
+      &>
+    </div>
+  </div>
+
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
+      <div class="custom-control custom-checkbox">
+        <input class="custom-control-input checkbox" type="checkbox" name="SkipNotification" id="SkipNotification" value="Requestors" <% (grep $_ eq 'Requestors', @SkipNotification)? 'checked': '' %> />
+        <label class="custom-control-label" for="SkipNotification"><&|/l&>Don't send any emails to correspondents.</&></label>
+      </div>
+    </div>
+  </div>
+
 % $m->callback( CallbackName => 'AfterRequestors', ARGSRef => \%ARGS );
 
-  <tr>
-    <td class="label"><&|/l&>Cc</&>:</td>
-    <td class="value"><& /Elements/EmailInput,
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Cc</&>:
+    </div>
+    <div class="value col-md-9">
+      <& /Elements/EmailInput,
         Name => 'Cc', Default => $ARGS{'Cc'}, Size => undef,
-    &></td>
-  </tr>
-  <tr>
-    <td class="label"> </td>
-    <td class="comment"><i><font size="-2">
-        <&|/l&>(Sends a carbon-copy of this update to a comma-delimited list of email addresses. These people <b>will</b> receive future updates.)</&>
-    </font></i></td>
-  </tr>
-
-  <tr>
-    <td class="label"><&|/l&>Admin Cc</&>:</td>
-    <td class="value"><& /Elements/EmailInput,
+      &>
+    </div>
+  </div>
+
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
+      <i><&|/l&>(Sends a carbon-copy of this update to a comma-delimited list of email addresses. These people <b>will</b> receive future updates.)</&></i>
+    </div>
+  </div>
+
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Admin Cc</&>:
+    </div>
+    <div class="value col-md-9">
+      <& /Elements/EmailInput,
         Name => 'AdminCc', Default => $ARGS{'AdminCc'}, Size => undef,
-    &></td>
-  </tr>
-  <tr>
-    <td class="label"> </td>
-    <td class="comment"><i><font size="-2">
-        <&|/l&>(Sends a carbon-copy of this update to a comma-delimited list of administrative email addresses. These people <b>will</b> receive future updates.)</&>
-    </font></i></td>
-  </tr>
+      &>
+    </div>
+  </div>
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
+      <i><&|/l&>(Sends a carbon-copy of this update to a comma-delimited list of administrative email addresses. These people <b>will</b> receive future updates.)</&></i>
+    </div>
+  </div>
 
 % my $roles = $QueueObj->CustomRoles;
 % $roles->LimitToMultipleValue;
 % while (my $role = $roles->Next) {
-  <tr>
-    <td class="label"><% $role->Name %>:</td>
-    <td class="value"><& /Elements/EmailInput,
+  <div class="form-row">
+    <div class="label col-md-3">
+      <% $role->Name %>:
+    </div>
+    <div class="value col-md-9">
+      <& /Elements/EmailInput,
         Name => $role->GroupType, Default => $ARGS{$role->GroupType}, Size => undef,
-    &></td>
-  </tr>
+      &>
+    </div>
+  </div>
 % if ($role->EntryHint) {
-  <tr>
-    <td class="label"> </td>
-    <td class="comment"><i><font size="-2">
-        <% $role->EntryHint %>
-    </font></i></td>
-  </tr>
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
+      <i><% $role->EntryHint %></i>
+    </div>
+  </div>
 % }
 % }
 
-  <tr>
-    <td class="label"><&|/l&>Subject</&>:</td>
-    <td class="value"><input type="text" name="Subject" maxsize="200" value="<% $Subject || '' %>" /></td>
-  </tr>
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Subject</&>:
+    </div>
+    <div class="value col-md-9">
+      <input class="form-control" type="text" name="Subject" value="<% $Subject || '' %>" />
+    </div>
+  </div>
 
 % if ( $gnupg_widget ) {
-  <tr><td> </td><td class="value">
-  <& /Elements/Crypt/SignEncryptWidget, self => $gnupg_widget, QueueObj => $QueueObj &>
-  </td></tr>
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
+      <& /Elements/Crypt/SignEncryptWidget, self => $gnupg_widget, QueueObj => $QueueObj &>
+    </div>
+  </div>
 % }
 
-  <tr>
-    <td class="label"><&|/l&>Message</&>:</td>
-    <td class="value">
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Message</&>:
+    </div>
+    <div class="value col-md-9">
 <%perl>
  my $include_signature = 1;
  unless (exists $ARGS{Content}) {
@@ -339,12 +371,12 @@
 % } else {
 <& /Elements/MessageBox, QuoteTransaction => $QuoteTransaction &>
 % }
-    </td>
-  </tr>
+    </div>
+  </div>
 
   <& /Ticket/Elements/AddAttachments, %ARGS, QueueObj => $QueueObj &>
 
-</table></&>
+</&>
 
 <& /Elements/Submit, Name => "Create", Label => $SubmitCaption, SubmitId => 'create-ticket' &>
 </div></div>
diff --git a/html/RTIR/Elements/SelectIncident b/html/RTIR/Elements/SelectIncident
index 7cd77d1e..11b7ea6c 100644
--- a/html/RTIR/Elements/SelectIncident
+++ b/html/RTIR/Elements/SelectIncident
@@ -45,25 +45,32 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-<tr class="incident">
-  <td class="label"><&|/l&>Incident</&>:</td>
-  <td class="value">
+  <div class="form-row">
+    <div class="label col-md-3">
+      <&|/l&>Incident</&>:
+    </div>
+    <div class="value col-md-9">
+      <div class="form-row">
 % if ( @potential ) {
-    <& /RTIR/Search/Elements/ShowResults,
-        Query         => $query,
-        Rows          => 0,
-        Format        => $format,
-        DisplayFormat => $dformat,
-        AllowSorting  => 0,
-        ShowHeader    => 0,
-    &>
+        <& /RTIR/Search/Elements/ShowResults,
+           Query         => $query,
+           Rows          => 0,
+           Format        => $format,
+           DisplayFormat => $dformat,
+           AllowSorting  => 0,
+           ShowHeader    => 0,
+        &>
 % }
 % if ( $hide ) {
     <input type="hidden" name="<% $Name %>" value="<% $potential[0] %>" />
 % }
-    <input type="text" name="<% $Name %>" size="16" maxsize="16" value="" />
+    <div class="col-md-auto">
+      <input class="form-control" type="text" name="<% $Name %>" value="" />
+    </div>
 % if ( $config->{'Multiple'} || @potential ) {
-    <input type="submit" name="<% "More$Name" %>" value="<% $config->{'Multiple'}? loc('More') : loc('Other') %>" class="button" />
+    <div class="col-md-auto">
+      <input type="submit" name="<% "More$Name" %>" value="<% $config->{'Multiple'}? loc('More') : loc('Other') %>" class="form-control btn btn-primary button" />
+    </div>
 % }
 
 % if ( !$config->{'Required'} && $dformat =~ /RadioButton/ ) {
@@ -73,15 +80,17 @@ jQuery(function(){ jQuery('input[type="radio"][name="<% $Name %>"]').uncheckable
 //]]>
 </script>
 % }
-  </td>
-</tr>
-<tr>
-  <td class="label"> </td>
-  <td class="comment">
+      </div>
+    </div>
+  </div>
+
+  <div class="form-row">
+    <div class="label col-md-3"></div>
+    <div class="value col-md-9">
       (<&|/l&>Id of an Incident to link a new ticket to</&>.
       <% $config->{'Required'}? '<strong>'.loc('Required').'</strong>': loc('Optional') |n %>.)
-  </td>
-</tr>
+    </div>
+  </div>
 <%ARGS>
 $Type
 $Name     => 'Incident'

-----------------------------------------------------------------------


More information about the rt-commit mailing list