This commit was generated by cvs2svn to compensate for changes in r4407,
[freeside.git] / rt / html / Ticket / ModifyCustomers.html
1 %# Copyright (c) 2004 Ivan Kohler <ivan-rt@420.am>
2 %#
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
6 %# from www.gnu.org.
7 %# 
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, 
14     Ticket => $Ticket, 
15     current_tab => "Ticket/ModifyCustomers.html?id=".$Ticket->Id, 
16     Title => loc("Customers for ticket #[_1]", $Ticket->Id) &>
17
18 <& /Elements/ListActions, actions => \@results &>
19
20 <form action="ModifyCustomers.html" method="post">
21 <input type="hidden" name="id" value="<%$Ticket->id%>">
22
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') &>
27 </form>
28
29
30 <%INIT>
31
32 my @results = ();
33 my $Ticket = LoadTicket($id);
34
35 # if we're trying to search for customers/services and nothing else
36 unless ( $OnlySearchForCustomers || $OnlySearchForServices) {
37    @results = ProcessTicketCustomers( TicketObj => $Ticket, ARGSRef => \%ARGS);
38 }
39     
40 </%INIT>
41
42
43 <%ARGS>
44 $OnlySearchForCustomers => undef
45 $OnlySearchForServices => undef
46 $CustomerString => undef
47 $ServiceString => undef
48 $id => undef
49 </%ARGS>