e6abbd13c402840ec0b89dbe605cae39862aeaf9
[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'} || mt('Order new package'),
4               'actionlabel' => mt('Order new package'),
5               'color'       => '#333399',
6               'cust_main'   => $cust_main,
7               'closetext'   => mt('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>