X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Forder_pkg_link.html;h=7bc5eef31488cc387bf2e7ddfb4ca43ac8e38cdf;hb=e41880cfb8d9835bca858ec13c96724b08fa0af7;hp=2e8b1dac192b836d8453f59b5bc731f3c74ae3a6;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/view/cust_main/order_pkg_link.html b/httemplate/view/cust_main/order_pkg_link.html index 2e8b1dac1..7bc5eef31 100644 --- a/httemplate/view/cust_main/order_pkg_link.html +++ b/httemplate/view/cust_main/order_pkg_link.html @@ -1,22 +1,22 @@ -<% include( '/elements/popup_link-cust_main.html', - 'action' => $p. 'misc/order_pkg.html', - 'label' => $opt{'label'} || 'Order new package', - 'actionlabel' => 'Order new package', - 'color' => '#333399', - 'cust_main' => $cust_main, - 'closetext' => 'Close', - 'width' => 763, - 'height' => 538, - %optional, - ) -%> +<& /elements/popup_link-cust_main.html, + 'action' => $p. 'misc/order_pkg.html', + 'label' => $opt{'label'} || emt('Order new package'), + 'actionlabel' => emt('Order new package'), + 'color' => '#333399', + 'cust_main' => $cust_main, + 'closetext' => emt('Close'), + 'width' => 960, #763, + 'height' => $height, + %optional, +&> <%init> my($cust_main, %opt) = @_; -my %optional = (); -$optional{'pkgpart'} = $opt{'pkgpart'} if $opt{'pkgpart'}; -$optional{'locationnum'} = $opt{'locationnum'} if $opt{'locationnum'}; -$optional{'svcpart'} = $opt{'svcpart'} if $opt{'svcpart'}; +my %optional = map { $_ => $opt{$_} } + grep $opt{$_}, + qw( lock_pkgpart lock_locationnum qualnum svcpart ); + +my $height = $opt{'lock_locationnum'} ? 336 : 576;