X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_virtual_field.pm;h=63712b763b0b15766e4d3fd30949cb2ae3491511;hp=0011ec6d3b78e6e3fe8a1455bdf529a90c8255e6;hb=a7a22257d456394125eed32f8261c75a7f393ec2;hpb=772656864b377bbd2ef2febd40891ef1206b5be0 diff --git a/FS/FS/part_virtual_field.pm b/FS/FS/part_virtual_field.pm index 0011ec6d3..63712b763 100755 --- a/FS/FS/part_virtual_field.pm +++ b/FS/FS/part_virtual_field.pm @@ -59,6 +59,7 @@ Create a new record. To add the record to the database, see "insert". sub table { 'part_virtual_field'; } sub virtual_fields { () } +sub virtual_fields_hash { () } =item widget UI_TYPE MODE [ VALUE ] @@ -81,19 +82,20 @@ VALUE (optional) is the current value of the field. sub widget { my $self = shift; - my ($ui_type, $mode, $value) = @_; + my ($ui_type, $mode, $value, $header_col_type) = @_; + $header_col_type = 'TD' unless $header_col_type; my $text; my $label = $self->label || $self->name; if ($ui_type eq 'HTML') { if ($mode eq 'view') { - $text = q!! . $label . - q!! . $value . + $text = q!! . $label . + q!! . $value . q!! . "\n"; } elsif ($mode eq 'edit') { - $text = q!! . $label . - q!!; - $text .= q!! . $label . + q!!; + $text .= q!length) { $text .= q! SIZE="! . $self->length . q!"!;