X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_virtual_field.pm;h=1df4984e11a2cbf0f4caa076766951495cf7874f;hb=0df2eac272aa26a62431f5cd830c1cb7b1018e32;hp=4e6d2e4bd07c9793468105322c7d21f06f3362a0;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/FS/FS/part_virtual_field.pm b/FS/FS/part_virtual_field.pm index 4e6d2e4bd..1df4984e1 100755 --- a/FS/FS/part_virtual_field.pm +++ b/FS/FS/part_virtual_field.pm @@ -62,6 +62,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 ] @@ -84,19 +85,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!"!;