RTIR add callbacks to create/edit/display.html to add custom boxes

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).

RTIR-AdditionalRTIRBoxes-callback.patch (2.41 KB)

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: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Hi.

As RTIR is already in path of those components then using it name of
callbacks is ambiguous. Also, RT uses different naming conventions, usually
it’s AfterXxx.09.09.2010 21:22 пользователь “Richard Harman” rt-devel@richardharman.com
написал:

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).

List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Hi.

As RTIR is already in path of those components then using it name of
callbacks is ambiguous. Also, RT uses different naming conventions, usually
it’s AfterXxx.

Mm. I support changing thouse, even though I’d applied it already.