X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_phone.cgi;h=ebde4222850685c7e046d195f2d8e121fa2f13f4;hp=76ee7397de78a5a05ea3a9ef2f4da37f3cf59c42;hb=4bd9d3d9dc5325f0d7bd498e457140b15d01866c;hpb=593ae0ec1c7cfd30203902a01f7439ba77ee2787 diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi index 76ee7397d..ebde42228 100644 --- a/httemplate/view/svc_phone.cgi +++ b/httemplate/view/svc_phone.cgi @@ -16,6 +16,7 @@ <%init> my $conf = new FS::Conf; +my $countrydefault = $conf->config('countrydefault') || 'US'; my @fields = qw( countrycode phonenum ); push @fields, 'domain' if $conf->exists('svc_phone-domain'); @@ -25,6 +26,27 @@ my $html_foot = sub { my $svc_phone = shift; ### + # E911 Info + ### + + my $loc = $svc_phone->cust_location_or_main; + + my $e911 = + 'E911 Information'. + &ntable("#cccccc"). ''. ntable("#cccccc",2). + 'Location'. + ''. + $loc->location_label( 'join_string' => '
', + 'double_space' => '   ', + 'escape_function' => \&encode_entities, + 'countrydefault' => $countrydefault, + ). + ''. + ''. + '
' + ; + + ### # Devices ### @@ -123,6 +145,7 @@ my $html_foot = sub { # concatenate & return ### + $e911. $devices. join(' | ', @links ). '
'. join(' | ', @ilinks). '
';