[Rt-commit] rtir branch, 5.0/fix-reporting-layout, created. 4.0.1rc1-117-g2276a47e

Blaine Motsinger blaine at bestpractical.com
Fri May 8 15:58:56 EDT 2020


The branch, 5.0/fix-reporting-layout has been created
        at  2276a47ee45c82dbd9a97bed1db5bf4b6885219d (commit)

- Log -----------------------------------------------------------------
commit 2276a47ee45c82dbd9a97bed1db5bf4b6885219d
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Fri May 8 14:56:26 2020 -0500

    Center align and fix label of Reporting
    
    For small browser sizes the label rows were jumping to a second
    line. Additionally, center align the content in the form to match
    the styling of other pages in RT.

diff --git a/html/RTIR/Reporting/index.html b/html/RTIR/Reporting/index.html
index 492507b0..717af347 100644
--- a/html/RTIR/Reporting/index.html
+++ b/html/RTIR/Reporting/index.html
@@ -48,14 +48,14 @@
 <& /RTIR/Elements/Header, Title => $title &>
 <& /Elements/Tabs &>
 
-<form action="index.html" method="post">
+<form action="index.html" method="post" class="mx-auto max-width-md">
 <div class="row">
-  <div class="col-md-3">
+  <div class="col-12">
     <div class="form-row">
-      <div class="label col-md-3">
+      <div class="label col-3">
         <&|/l&>Constituency</&>:
       </div>
-      <div class="value col-md-9">
+      <div class="value col-9">
         <& /Elements/EditCustomField,
             QueueObj => RT::Queue->new($session{CurrentUser}),
             CustomField => $constituency_cf,
@@ -64,18 +64,18 @@
       </div>
     </div>
     <div class="form-row">
-      <div class="label col-md-3">
+      <div class="label col-3">
         <&|/l&>Start Date:</&>
       </div>
-      <div class="value col-md-9">
+      <div class="value col-9">
         <& /Elements/SelectDate, Name => 'StartDate', Default => $start->AsString &>
       </div>
     </div>
     <div class="form-row">
-      <div class="label col-md-3">
+      <div class="label col-3">
         <&|/l&>End Date:</&>
       </div>
-      <div class="value col-md-9">
+      <div class="value col-9">
         <& /Elements/SelectDate, Name => 'EndDate', Default => $end->AsString &>
       </div>
     </div>
@@ -83,7 +83,7 @@
 </div>
 
 <div class="row">
-  <div class="col-md-12">
+  <div class="col-11">
     <& /Elements/Submit,
         Caption => loc("Generate a delimited text report"),
         Name    => "TextReport",

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


More information about the rt-commit mailing list