X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=b1851a7bae57e83948b65ba9baad402783b6d1fe;hb=9464e3517fcae6a735c14b3fb15b91f3886a884a;hp=a337d2272da132bac4c5a727e3a9c190eff34c6e;hpb=2a6aa24137ddd389c1e644f5ece325c5b5dbaf3a;p=freeside.git diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index a337d2272..b1851a7ba 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -1,5 +1,4 @@ -<% include("/elements/header.html","$action Package Definition", menubar( - 'Main Menu' => popurl(2), +<% include('/elements/header.html', "$action Package Definition", menubar( 'View all packages' => popurl(2). 'browse/part_pkg.cgi', )) %> % #), ' onLoad="visualize()"'); @@ -244,6 +243,7 @@ Line-item revenue recognition % delete $freq{$_} foreach grep { ! /^\d+$/ } keys %freq; %} % +%#this should be replaced by /elements/selectlayers.html %my $widget = new HTML::Widgets::SelectLayers( % 'selected_layer' => $part_pkg->plan, % 'options' => \%options, @@ -286,19 +286,25 @@ Line-item revenue recognition % % my $format = sub { shift }; % $format = $href->{$field}{'format'} if exists($href->{$field}{'format'}); +% % if ( ! exists($href->{$field}{'type'}) ) { +% % $html .= qq!!; +% % } elsif ( $href->{$field}{'type'} eq 'checkbox' ) { +% % $html .= qq!'; +% % } elsif ( $href->{$field}{'type'} =~ /^select/ ) { +% % $html .= '{$field}{'type'} eq 'select_multiple'; @@ -319,13 +325,13 @@ Line-item revenue recognition % } % } elsif ( $href->{$field}{'select_options'} ) { % foreach my $key ( keys %{ $href->{$field}{'select_options'} } ) { -% my $value = $href->{$field}{'select_options'}{$key}; +% my $label = $href->{$field}{'select_options'}{$key}; % $html .= qq!