X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_pkg.cgi;h=b1851a7bae57e83948b65ba9baad402783b6d1fe;hb=9464e3517fcae6a735c14b3fb15b91f3886a884a;hp=ec001cb0c7f10abe3131fd62dcf85c5788483c5e;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;p=freeside.git
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index ec001cb0c..b1851a7ba 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -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 .= '';
+%
+% } elsif ( $href->{$field}{'type'} eq 'radio' ) {
+%
+% my $radio =
+% qq!{$field}{'options'} } ) {
+% my $label = $href->{$field}{'options'}{$key};
+% $html .= qq!$radio VALUE="$key"!.
+% ( $plandata{$field} =~ /(^|, *)$key *(,|$)/ #XXX fix
+% ? ' CHECKED'
+% : ''
+% ).
+% "> $label
";
+% }
+%
% }
%
% $html .= '';