[Rt-commit] [rtir] 05/09: Update display to use Custom Field Groupings
Kevin Falcone
falcone at bestpractical.com
Fri Jul 25 15:16:02 EDT 2014
This is an automated email from the git hooks/post-receive script.
falcone pushed a commit to branch 3.2/customfieldgroupings
in repository rtir.
commit 0e663836f519d648c0bdc2a8086a4e40075f16e1
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 f2514db..3ae7860 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 230e755..6cc6831 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