internationalization/localization, RT12515
[freeside.git] / httemplate / view / cust_main / order_pkg_link.html
index 2e8b1da..e6abbd1 100644 (file)
@@ -1,22 +1,22 @@
-<% include( '/elements/popup_link-cust_main.html',
+<& /elements/popup_link-cust_main.html,
               'action'      => $p. 'misc/order_pkg.html',
-              'label'       => $opt{'label'} || 'Order&nbsp;new&nbsp;package',
-              'actionlabel' => 'Order new package',
+              'label'       => $opt{'label'} || mt('Order new package'),
+              'actionlabel' => mt('Order new package'),
               'color'       => '#333399',
               'cust_main'   => $cust_main,
-              'closetext'   => 'Close',
+              'closetext'   => mt('Close'),
               'width'       => 763,
-              'height'      => 538,
+              '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'} ? 296 : 538;
 
 </%init>