[Rt-commit] [rtir] 05/10: Update display to use Custom Field Groupings

Kevin Falcone falcone at bestpractical.com
Mon Aug 18 16:39:17 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch master
in repository rtir.

commit 0800a6e9d9659b9072ecccb3eb86d01fd49461da
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Jul 25 15:02:32 2014 -0400

    Update display to use Custom Field Groupings
    
    RTIR has two primary displays (Display and Incident/Display) which get
    identical "show Basics CFs and then show all the grouped CFs" code and
    we add Dates and People CFs to the ShowDates/ShowPeople code copied from
    core.
---
 html/RTIR/Display.html          | 7 ++++++-
 html/RTIR/Elements/ShowDates    | 1 +
 html/RTIR/Elements/ShowPeople   | 1 +
 html/RTIR/Incident/Display.html | 9 +++++++--
 4 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index 32565bf..c029259 100644
--- a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -83,12 +83,17 @@
     <td class="value"><%loc('[_1] min', $TimeWorked)%></td>
   </tr>
 
-  <& /Elements/ShowCustomFields, Object => $Ticket, Table => 0 &>
+  <& /Elements/ShowCustomFields, Grouping => 'Basics', Object => $Ticket, Table => 0 &>
 
 </table>
 
 </&>
 
+<& /Elements/ShowCustomFieldCustomGroupings,
+    Object       => $Ticket,
+    title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html",
+&>
+
 <& /RTIR/Elements/ShowArticles, Ticket => $Ticket &>
 
 </td> <td class="boxcontainer" valign="top">
diff --git a/html/RTIR/Elements/ShowDates b/html/RTIR/Elements/ShowDates
index c0ede58..965d638 100644
--- a/html/RTIR/Elements/ShowDates
+++ b/html/RTIR/Elements/ShowDates
@@ -78,6 +78,7 @@
     <td class="label"><&|/l&>Updated</&>:</td>
     <td class="value"><a href="#lasttrans"><% $Ticket->LastUpdated ? (loc("[_1] by [_2]", $Ticket->LastUpdatedAsString, $Ticket->LastUpdatedByObj->Name)) : loc("Never") | h %></a></td>
   </tr>
+<& /Elements/ShowCustomFields, Grouping => 'Dates', Object => $Ticket, Table => 0 &>
 </table>
 <%ARGS>
 $Ticket => undef
diff --git a/html/RTIR/Elements/ShowPeople b/html/RTIR/Elements/ShowPeople
index 4cd1025..8869d11 100644
--- a/html/RTIR/Elements/ShowPeople
+++ b/html/RTIR/Elements/ShowPeople
@@ -69,6 +69,7 @@
     <td class="labeltop"><&|/l&>AdminCc</&>:</td>
     <td class="value"><& /Ticket/Elements/ShowGroupMembers, Group => $Ticket->AdminCc, Ticket => $Ticket &></td>
   </tr>
+<& /Elements/ShowCustomFields, Grouping => 'People', Object => $Ticket, Table => 0 &>
 </table>
 <%ARGS>
 $Ticket => undef
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 0c1056c..3646d64 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -86,14 +86,19 @@
     <td class="value"><%loc('[_1] min', $TimeWorked)%></td>
   </tr>
 
-  <& /Elements/ShowCustomFields, Object => $TicketObj, Table => 0 &>
+  <& /Elements/ShowCustomFields, Grouping => 'Basics', Object => $TicketObj, Table => 0 &>
 
 </table>
 </&>
 
+<& /Elements/ShowCustomFieldCustomGroupings,
+    Object       => $TicketObj,
+    title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html",
+&>
+
 <&| /Widgets/TitleBox,
     title => loc("Dates"),
-    title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$id, 
+    title_href => RT->Config->Get('WebPath') ."/RTIR/Edit.html?id=".$id,
     class => 'ticket-info-dates',
 &>
 <& /RTIR/Elements/ShowDates, Ticket => $TicketObj &>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list