X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fsvc_phone.cgi;h=76ee7397de78a5a05ea3a9ef2f4da37f3cf59c42;hb=92d0bc2bf6c4c6d43c7209b9bf437da05d2cfa8f;hp=09d5be483a4851e76e94816175b0b785c2d2a58d;hpb=d906eeadf9576cbdb0e337a774ab17327009ad45;p=freeside.git diff --git a/httemplate/view/svc_phone.cgi b/httemplate/view/svc_phone.cgi index 09d5be483..76ee7397d 100644 --- a/httemplate/view/svc_phone.cgi +++ b/httemplate/view/svc_phone.cgi @@ -1,15 +1,11 @@ <% include('elements/svc_Common.html', 'table' => 'svc_phone', - 'fields' => [qw( - countrycode - phonenum - sip_password - pin - phone_name - )], + 'fields' => \@fields, 'labels' => { 'countrycode' => 'Country code', 'phonenum' => 'Phone number', + 'domain' => 'Domain', + 'pbx_title' => 'PBX', 'sip_password' => 'SIP password', 'pin' => 'PIN', 'phone_name' => 'Name', @@ -19,6 +15,12 @@ %> <%init> +my $conf = new FS::Conf; + +my @fields = qw( countrycode phonenum ); +push @fields, 'domain' if $conf->exists('svc_phone-domain'); +push @fields, qw( pbx_title sip_password pin phone_name ); + my $html_foot = sub { my $svc_phone = shift; @@ -56,6 +58,7 @@ my $html_foot = sub { 'Type'. 'MAC Addr'. ''. + ''. ''; my $bgcolor1 = '#eeeeee'; my $bgcolor2 = '#ffffff'; @@ -71,10 +74,12 @@ my $html_foot = sub { my $td = qq(); my $devicenum = $phone_device->devicenum; + my $export_links = join( '
', @{ $phone_device->export_links } ); $devices .= ''. $td. $phone_device->part_device->devicename. ''. $td. $phone_device->mac_addr. ''. + $td. $export_links. ''. "$td( ". qq(edit | ). qq(delete). @@ -107,11 +112,11 @@ my $html_foot = sub { # "View $_ CDRs"; #} keys(%what); my @links = map { - qq(). + qq(). "View $_ CDRs"; } keys(%what); - my @ilinks = ( qq(). + my @ilinks = ( qq(). 'View incoming CDRs' ); ###