2 <% $contact->line |h %>
5 ( <%pkg_change_contact_link($cust_pkg)%> )
8 % } elsif ( $show_link ) {
10 ( <%pkg_add_contact_link($cust_pkg)%> )
15 my $conf = new FS::Conf;
18 my $cust_pkg = $opt{'cust_pkg'};
21 ! $cust_pkg->get('cancel')
22 && $FS::CurrentUser::CurrentUser->access_right('Change customer package');
24 my $contact = $cust_pkg->contact_obj;
26 sub pkg_change_contact_link {
28 #my $pkgpart = $cust_pkg->pkgpart;
29 include( '/elements/popup_link-cust_pkg.html',
30 'action' => $p. "misc/change_pkg_contact.html",
31 'label' => emt('Change'), # contact'),
32 'actionlabel' => emt('Change'),
33 'cust_pkg' => $cust_pkg,
39 sub pkg_add_contact_link {
41 #my $pkgpart = $cust_pkg->pkgpart;
42 include( '/elements/popup_link-cust_pkg.html',
43 'action' => $p. "misc/change_pkg_contact.html",
44 'label' => emt('Add contact'),
45 'actionlabel' => emt('Change'),
46 'cust_pkg' => $cust_pkg,
52 #sub edit_contact_link {
53 # my $contactnum = shift;
54 # include( '/elements/popup_link.html',
55 # 'action' => $p. "edit/cust_contact.cgi?contactnum=$contactnum",
56 # 'label' => emt('Edit contact'),
57 # 'actionlabel' => emt('Edit'),