Thanks! Applied.On Thu, Sep 09, 2010 at 01:22:26PM -0400, Richard Harman wrote:
Diff against rtir 2.4-trunk
http://github.com/warewolf/rtir/commit/f7901605c3a4c639576a56b2c4fb5e598331c675
This is some prep work for an extension I will be releasing shortly
that adds some better visual organization of custom fields in RTIR.
This will permit you to add content to the create/edit/display RTIR
pages for custom fields in an organized way (rather than a long list
of CFs in a “Custom Fields” box).
diff --git a/html/RTIR/Create.html b/html/RTIR/Create.html
index e4eeba6…f4c74b6 100644
— a/html/RTIR/Create.html
+++ b/html/RTIR/Create.html
@@ -341,6 +341,7 @@ $ip_default ||= RT->Config->Get(‘_RTIR_IP_default’) || ‘’;
</&>
+% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
diff --git a/html/RTIR/Display.html b/html/RTIR/Display.html
index 36d866b…14877f3 100644
— a/html/RTIR/Display.html
+++ b/html/RTIR/Display.html
@@ -189,6 +189,7 @@
+% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
<& /Ticket/Elements/ShowAttachments, Ticket => $Ticket,
diff --git a/html/RTIR/Edit.html b/html/RTIR/Edit.html
index 894b3c1..6d9323d 100644
--- a/html/RTIR/Edit.html
+++ b/html/RTIR/Edit.html
@@ -212,6 +212,7 @@
+% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index f43f25d…2d955ac 100644
— a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -180,6 +180,7 @@ unless ( exists $ARGS{‘Content’} ) {
+% $m->callback(CallbackName => ‘AdditionalRTIRBoxes’, %ARGS, Actions => @results, ARGSRef => %ARGS, Ticket => $TicketObj);
</&>
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 512ac93…96109f7 100644
— a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -130,7 +130,9 @@
Queue => ‘Incident Reports’,
&>
-
+
+% $m->callback(CallbackName => ‘AdditionalRTIRBoxes’, %ARGS, Actions => @results, ARGSRef => %ARGS, Ticket => $TicketObj);
+
<& /RTIR/Incident/Elements/ShowChildren,
IncidentObj => $TicketObj,
diff --git a/html/RTIR/Incident/Edit.html b/html/RTIR/Incident/Edit.html
index 9ba56c8…3efc869 100644
— a/html/RTIR/Incident/Edit.html
+++ b/html/RTIR/Incident/Edit.html
@@ -154,6 +154,7 @@
+% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
List info: The rt-devel Archives