[Rt-commit] rt branch, 5.0/custom-date-ranges-config-ui, updated. rt-5.0.0alpha1-248-g7f95555cfc

Jim Brandt jbrandt at bestpractical.com
Thu May 7 13:44:46 EDT 2020


The branch, 5.0/custom-date-ranges-config-ui has been updated
       via  7f95555cfc73cfbf60331f4fe2a0126729bec7c2 (commit)
       via  953ace6bc38636112cd113fc1f6a4c87ac584d7e (commit)
      from  b5ea71222c5f3438b86003dd5afef4b2287fefca (commit)

Summary of changes:
 etc/RT_Config.pm.in                      | 16 +++++++++++++---
 share/html/Elements/EditCustomDateRanges |  6 +++---
 share/html/Elements/ShowCustomDateRanges |  6 +++---
 3 files changed, 19 insertions(+), 9 deletions(-)

- Log -----------------------------------------------------------------
commit 953ace6bc38636112cd113fc1f6a4c87ac584d7e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu May 7 13:43:17 2020 -0400

    Break longer column headings for better spacing

diff --git a/share/html/Elements/EditCustomDateRanges b/share/html/Elements/EditCustomDateRanges
index 48dcb26bc6..f5f6e4ba22 100644
--- a/share/html/Elements/EditCustomDateRanges
+++ b/share/html/Elements/EditCustomDateRanges
@@ -53,10 +53,10 @@
     <tr class="collection-as-table text-center">
       <th class="collection-as-table"><&|/l&>Name</&></th>
       <th class="collection-as-table"><&|/l&>From</&></th>
-      <th class="collection-as-table"><&|/l&>From Value if Unset</&></th>
+      <th class="collection-as-table"><&|/l&>From Value<br>if Unset</&></th>
       <th class="collection-as-table"><&|/l&>To</&></th>
-      <th class="collection-as-table"><&|/l&>To Value if Unset</&></th>
-      <th class="collection-as-table"><&|/l&>Business Hours?</&></th>
+      <th class="collection-as-table"><&|/l&>To Value<br>if Unset</&></th>
+      <th class="collection-as-table"><&|/l&>Business<br>Hours?</&></th>
       <th class="collection-as-table text-left">
         <input type="checkbox" name="DeleteAll" value="1" onclick="setCheckbox(this, /^\d+-Delete$/)" />
         <&|/l&>Delete</&>
diff --git a/share/html/Elements/ShowCustomDateRanges b/share/html/Elements/ShowCustomDateRanges
index 04cce6f790..19280b3b67 100644
--- a/share/html/Elements/ShowCustomDateRanges
+++ b/share/html/Elements/ShowCustomDateRanges
@@ -51,10 +51,10 @@
     <tr class="collection-as-table">
       <th class="collection-as-table"><&|/l&>Name</&></th>
       <th class="collection-as-table"><&|/l&>From</&></th>
-      <th class="collection-as-table"><&|/l&>From Value if Unset</&></th>
+      <th class="collection-as-table"><&|/l&>From Value<br>if Unset</&></th>
       <th class="collection-as-table"><&|/l&>To</&></th>
-      <th class="collection-as-table"><&|/l&>To Value if Unset</&></th>
-      <th class="collection-as-table"><&|/l&>Business Hours?</&></th>
+      <th class="collection-as-table"><&|/l&>To Value<br>if Unset</&></th>
+      <th class="collection-as-table"><&|/l&>Business<br>Hours?</&></th>
     </tr>
 % my $i = 0;
 % for my $name ( sort keys %CustomDateRanges ) {

commit 7f95555cfc73cfbf60331f4fe2a0126729bec7c2
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu May 7 13:44:29 2020 -0400

    Reference web UI options in CustomDateRanges docs

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 15ea944c5d..103dca37c8 100644
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -4589,9 +4589,19 @@ Set( %ServiceBusinessHours, );
 =item C<%CustomDateRanges>
 
 This option lets you declare additional date ranges to be calculated
-and displayed in search results. Durations between any two core fields,
-as well as custom fields, are supported. Each custom date range is
-added as an additional display column in the search builder.
+and displayed in search results. Durations between any two core date
+fields, as well as date custom fields, are supported. Each custom
+date range is added as an additional display column in the query builder.
+
+You can create basic date calculations via the web UI. SuperUsers can
+create them in the main System Configuration section. Individual users
+can also create date ranges in the Search options section of user
+preferences. More complicated configurations, such as those with
+custom code, can be added in your C<RT_SiteConfig.pm> file as described
+below.
+
+Business hours are also supported in calculations if you have
+L<%ServiceBusinessHours> configured.
 
 Set C<%CustomDateRanges> to a nested structure similar to the following:
 

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


More information about the rt-commit mailing list