1 %# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am>
3 %# This work is made available to you under the terms of Version 2 of
4 %# the GNU General Public License. A copy of that license should have
5 %# been provided with this software, but in any event can be snarfed
8 %# This work is distributed in the hope that it will be useful, but
9 %# WITHOUT ANY WARRANTY; without even the implied warranty of
10 %# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 %# General Public License for more details.
12 <& /Elements/Header, Title => loc("Customers for ticket #[_1]", $Ticket->Id) &>
13 <& /Ticket/Elements/Tabs,
15 current_tab => "Ticket/ModifyCustomers.html?id=".$Ticket->Id,
16 Title => loc("Customers for ticket #[_1]", $Ticket->Id) &>
18 <& /Elements/ListActions, actions => \@results &>
20 <form action="ModifyCustomers.html" method="post">
21 <input type="hidden" name="id" value="<%$Ticket->id%>">
23 <& /Elements/TitleBoxStart, title => loc('Edit Customer Links'), color => "#7f007b"&>
24 <& Elements/EditCustomers, Ticket => $Ticket, CustomerString => $CustomerString, ServiceString => $ServiceString &>
25 <& /Elements/TitleBoxEnd &>
26 <& /Elements/Submit, color => "#7f007b", Label => loc('Save Changes') &>
33 my $Ticket = LoadTicket($id);
35 # if we're trying to search for customers/services and nothing else
36 unless ( $OnlySearchForCustomers || $OnlySearchForServices) {
37 @results = ProcessTicketCustomers( TicketObj => $Ticket, ARGSRef => \%ARGS);
44 $OnlySearchForCustomers => undef
45 $OnlySearchForServices => undef
46 $CustomerString => undef
47 $ServiceString => undef