diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-06-02 17:01:40 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-06-02 17:01:40 -0700 |
commit | 9b27a2b16c37b060ef48029581e4196990a9963b (patch) | |
tree | 2668cf4dc367afc1ec2cbbb951bd0ad9c82cd34f /httemplate/view/elements | |
parent | e1e4c54b07804e5d9c3d9b45f8e82ccdbc902f90 (diff) |
show MAC address vendors
Diffstat (limited to 'httemplate/view/elements')
-rw-r--r-- | httemplate/view/elements/svc_Common.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/httemplate/view/elements/svc_Common.html b/httemplate/view/elements/svc_Common.html index d34ed509a..1818d34cf 100644 --- a/httemplate/view/elements/svc_Common.html +++ b/httemplate/view/elements/svc_Common.html @@ -107,9 +107,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> |