[Rt-devel] [PATCH] RTIR add callbacks to create/edit/display.html to add custom boxes

Jesse Vincent jesse at bestpractical.com
Thu Sep 16 10:11:14 EDT 2010



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') || '';
>      </&>
>      </td>
>    </tr>
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
>  </table>
>  </&>
>  
> 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 @@
>      <br />  
>    </td>
>  </tr>
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
>  <tr>
>    <td class="boxcontainer" valign="top">
>      <& /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 @@
>  
>  </td>
>  </tr>
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
>  </table>
>  <br />
>  
> 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'} ) {
>  
>  </td></tr>
>  
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
>  </table>
>  
>  </&>
> 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',
>  &>
>  
> -</td></tr><tr><td class="boxcontainer" valign="top">
> +</td></tr>
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
> +<tr><td class="boxcontainer" valign="top">
>  
>  <& /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 @@
>  
>  </td>
>  </tr>
> +% $m->callback(CallbackName => 'AdditionalRTIRBoxes', %ARGS, Actions => \@results, ARGSRef => \%ARGS, Ticket => $TicketObj);
>  </table>
>  <br />
>  

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


-- 


More information about the rt-devel mailing list