29398432e86fcabd297fab6160189f490b6a86f6
[freeside.git] / httemplate / view / cust_main / order_pkg_link.html
1 <& /elements/popup_link-cust_main.html,
2           'action'      => $p. 'misc/order_pkg.html',
3           'label'       => $opt{'label'} || emt('Order new package'),
4           'actionlabel' => emt('Order new package'),
5           'color'       => '#333399',
6           'cust_main'   => $cust_main,
7           'closetext'   => emt('Close'),
8           'width'       => 763,
9           'height'      => $height,
10           %optional,
11 &>
12 <%init>
13
14 my($cust_main, %opt) = @_;
15
16 my %optional = map { $_ => $opt{$_} }
17                  grep $opt{$_},
18                    qw( lock_pkgpart lock_locationnum qualnum svcpart );
19
20 my $height = $opt{'lock_locationnum'} ? 296 : 538;
21
22 </%init>