477 report tweaks
[freeside.git] / httemplate / view / elements / svc_Common.html
index d34ed50..b12d2dd 100644 (file)
@@ -78,9 +78,7 @@ function areyousure(href) {
 %       my $hack_strict_refs = \&{ $f->{'value_callback'} };
 %       $value = &$hack_strict_refs($svc_x);
 %     } else {
-%       $value = exists($f->{'value'})
-%                  ? $f->{'value'}
-%                  : encode_entities($svc_x->$field);
+%       $value = encode_entities($svc_x->$field);
 %     }
 %   } else {
 %     $field = $f;
@@ -107,9 +105,14 @@ function areyousure(href) {
           %>
         </TD>
 
-%      $value = time2str($date_format,$value) if ( $type eq 'date' && $value );
-%      $value = time2str("$date_format %H:%M",$value) if ( $type eq 'datetime' && $value );
-%      $value = $value eq 'Y' ? emt('Yes') : emt('No') if ( $type eq 'checkbox' );
+%      $value = time2str($date_format,$value)
+%         if $type eq 'date' && $value;
+%      $value = time2str("$date_format %H:%M",$value)
+%         if $type eq 'datetime' && $value;
+%      $value = $value eq 'Y' ? emt('Yes') : emt('No')
+%         if $type eq 'checkbox';
+%       $value .= ' ('. (Net::MAC::Vendor::lookup($value))->[0]. ')'
+%         if $type =~ /mac_addr$/ && $value =~ /\w/i;
 %       #eventually more options for <SELECT>, etc. fields
 
         <TD BGCOLOR="#ffffff"><% $value %><TD>