X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpackages%2Fcontact.html;h=8c596155278d612ed808525e84ed34f8874f267b;hb=HEAD;hp=93985e40419e2b7a4d740b2d29e6ff9b16867781;hpb=05eb6fd62056682d8760b85ced91dabd33357a3b;p=freeside.git diff --git a/httemplate/view/cust_main/packages/contact.html b/httemplate/view/cust_main/packages/contact.html index 93985e404..8c5961552 100644 --- a/httemplate/view/cust_main/packages/contact.html +++ b/httemplate/view/cust_main/packages/contact.html @@ -10,14 +10,10 @@ ( <%pkg_detach_link($cust_pkg)%> ) % } -% } elsif ( $show_contact_link && ! $opt{no_links} ) { - - ( <%pkg_add_contact_link($cust_pkg)%> ) - +
% } <%init> -my $conf = new FS::Conf; my %opt = @_; my $cust_pkg = $opt{'cust_pkg'}; @@ -30,10 +26,6 @@ my $show_detach_link = ! $cust_pkg->get('cancel') && $FS::CurrentUser::CurrentUser->access_right('Detach customer package'); -my $show_contact_link = - ! $cust_pkg->get('cancel') - ; #&& $FS::CurrentUser::CurrentUser->access_right('Add package contact'); #or something like that - my $contact = $cust_pkg->contact_obj; sub pkg_change_contact_link { @@ -49,19 +41,6 @@ sub pkg_change_contact_link { ); } -sub pkg_add_contact_link { - my $cust_pkg = shift; - #my $pkgpart = $cust_pkg->pkgpart; - include( '/elements/popup_link-cust_pkg.html', - 'action' => $p. "misc/change_pkg_contact.html", - 'label' => emt('Add contact'), - 'actionlabel' => emt('Add contact'), - 'cust_pkg' => $cust_pkg, - 'width' => 616, - 'height' => 192, - ); -} - sub pkg_detach_link { my $cust_pkg = shift; #my $pkgpart = $cust_pkg->pkgpart; @@ -71,7 +50,7 @@ sub pkg_detach_link { 'actionlabel' => emt('Detach'), 'cust_pkg' => $cust_pkg, 'width' => 616, - 'height' => 684, + 'height' => 720, ); }