combine ticket notification scrips, #15353
[freeside.git] / httemplate / elements / popup_link-cust_main.html
index 6d92301..1413785 100644 (file)
@@ -4,7 +4,7 @@ Example:
 
   include('/elements/init_overlib.html')
 
-  include( '/elements/cust_popup_link.html', { #hashref or a list, either way
+  include( '/elements/popup_link-cust_main.html', { #hashref or a list, either way
 
     #required
     'action'         => 'content.html', # uri for content of popup which should
@@ -27,7 +27,7 @@ Example:
 % }
 <%init>
 
-my $params = { 'closetext' => 'Close' };
+my $params = { 'closetext' => emt('Close') };
 
 if (ref($_[0]) eq 'HASH') {
   $params = { %$params, %{ $_[0] } };
@@ -39,4 +39,8 @@ $params->{'action'} .=
   ( $params->{'action'} =~ /\?/ ? ';' : '?' ).
   'custnum='. $params->{'cust_main'}->custnum;
 
+$params->{'action'} .= ";$_=".$params->{$_}
+  foreach grep $params->{$_},
+    qw( lock_pkgpart lock_locationnum qualnum svcpart );
+
 </%init>