1 %# {{{ BEGIN BPS TAGGED BLOCK
5 %# This software is Copyright (c) 1996-2004 Best Practical Solutions, LLC
6 %# <jesse@bestpractical.com>
8 %# (Except where explicitly superseded by other copyright notices)
13 %# This work is made available to you under the terms of Version 2 of
14 %# the GNU General Public License. A copy of that license should have
15 %# been provided with this software, but in any event can be snarfed
18 %# This work is distributed in the hope that it will be useful, but
19 %# WITHOUT ANY WARRANTY; without even the implied warranty of
20 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 %# General Public License for more details.
23 %# You should have received a copy of the GNU General Public License
24 %# along with this program; if not, write to the Free Software
25 %# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 %# CONTRIBUTION SUBMISSION POLICY:
30 %# (The following paragraph is not intended to limit the rights granted
31 %# to you to modify and distribute this software under the terms of
32 %# the GNU General Public License and is only of importance to you if
33 %# you choose to contribute your changes and enhancements to the
34 %# community by submitting them to Best Practical Solutions, LLC.)
36 %# By intentionally submitting any modifications, corrections or
37 %# derivatives to this work, or any other work intended for use with
38 %# Request Tracker, to Best Practical Solutions, LLC, you confirm that
39 %# you are the copyright holder for those contributions and you grant
40 %# Best Practical Solutions, LLC a nonexclusive, worldwide, irrevocable,
41 %# royalty-free, perpetual, license to use, copy, create derivative
42 %# works based on those contributions, and sublicense and distribute
43 %# those contributions and any derivatives thereof.
45 %# }}} END BPS TAGGED BLOCK
48 <TD VALIGN=TOP WIDTH=50%>
49 <h3><&|/l&>Current Links</&></h3>
54 <td><i><&|/l&>(Check box to delete)</&></i></td>
57 <td class="labeltop"><&|/l&>Depends on</&>:</td>
59 % while (my $link = $Object->DependsOn->Next) {
60 <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
61 <& ShowLink, URI => $link->TargetURI &><br>
66 <td class="labeltop"><&|/l&>Depended on by</&>:</td>
68 % while (my $link = $Object->DependedOnBy->Next) {
69 % my $member = $link->BaseObj;
70 <INPUT TYPE=CHECKBOX NAME="DeleteLink-<%$link->Base%>-<%$link->Type%>-">
71 <& ShowLink, URI => $link->BaseURI &><br>
76 <td class="labeltop"><&|/l&>Parents</&>:</td>
78 % while (my $link = $Object->MemberOf->Next) {
79 <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
80 <& ShowLink, URI => $link->TargetURI &><br>
85 <td class="labeltop"><&|/l&>Children</&>:</td>
87 % while (my $link = $Object->Members->Next) {
88 <INPUT TYPE=CHECKBOX NAME="DeleteLink-<%$link->Base%>-<%$link->Type%>-">
89 <& ShowLink, URI => $link->BaseURI &><br>
94 <td class="labeltop"><&|/l&>Refers to</&>:</td>
96 % while (my $link = $Object->RefersTo->Next) {
97 <INPUT TYPE=CHECKBOX NAME="DeleteLink--<%$link->Type%>-<%$link->Target%>">
98 <& ShowLink, URI => $link->TargetURI &><br>
103 <td class="labeltop"><&|/l&>Referred to by</&>:</td>
105 % while (my $link = $Object->ReferredToBy->Next) {
106 <INPUT TYPE=CHECKBOX NAME="DeleteLink-<%$link->Base%>-<%$link->Type%>-">
107 <& ShowLink, URI => $link->BaseURI &><br>
115 <h3><&|/l&>New Links</&></h3>
116 % if (ref($Object) eq 'RT::Ticket') {
117 <i><&|/l&>Enter tickets or URIs to link tickets to. Separate multiple entries with spaces.</&></i><br>
118 % } elsif (ref($Object) eq 'RT::Queue') {
119 <i><&|/l&>Enter queues or URIs to link queues to. Separate multiple entries with spaces.</&></i><br>
121 <i><&|/l&>Enter objects or URIs to link objects to. Separate multiple entries with spaces.</&></i><br>
126 <TD class="label"><&|/l&>Merge into</&>:</TD>
127 <TD class="entry"><input name="<%$id%>-MergeInto"> <i><&|/l&>(only one ticket)</&></i></TD>
131 <TD class="label"><&|/l&>Depends on</&>:</TD>
132 <TD class="entry"><input name="<%$id%>-DependsOn"></TD>
135 <TD class="label"><&|/l&>Depended on by</&>:</TD>
136 <TD class="entry"><input name="DependsOn-<%$id%>"></TD>
139 <TD class="label"><&|/l&>Parents</&>:</TD>
140 <TD class="entry"><input name="<%$id%>-MemberOf"></TD>
143 <TD class="label"><&|/l&>Children</&>:</TD>
144 <TD class="entry"> <input name="MemberOf-<%$id%>"></TD>
147 <TD class="label"><&|/l&>Refers to</&>:</TD>
148 <TD class="entry"><input name="<%$id%>-RefersTo"></TD>
151 <TD class="label"><&|/l&>Referred to by</&>:</TD>
152 <TD class="entry"> <input name="RefersTo-<%$id%>"></TD>
161 if ($Object && $Object->Id) {