detach a package into a new customer, RT#22185
[freeside.git] / httemplate / view / cust_main / packages / contact.html
index 9312991..4e0551b 100644 (file)
@@ -3,6 +3,7 @@
 % if ( $show_link ) {
         <FONT SIZE=-1>
           (&nbsp;<%pkg_change_contact_link($cust_pkg)%>&nbsp;)
+          (&nbsp;<%pkg_detach_link($cust_pkg)%>&nbsp;)
         </FONT>
 %    }
 % } elsif ( $show_link ) {
@@ -49,6 +50,19 @@ sub pkg_add_contact_link {
   );
 }
 
+sub pkg_detach_link {
+  my $cust_pkg = shift;
+  #my $pkgpart = $cust_pkg->pkgpart;
+  include( '/elements/popup_link-cust_pkg.html',
+    'action'      => $p. "misc/detach_pkg.html",
+    'label'       => emt('Detach'),
+    'actionlabel' => emt('Detach'),
+    'cust_pkg'    => $cust_pkg,
+    'width'       => 616,
+    'height'      => 676,
+  );
+}
+
 #sub edit_contact_link {
 #  my $contactnum = shift;
 #  include( '/elements/popup_link.html',