diff options
author | ivan <ivan> | 2010-03-08 07:02:58 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-03-08 07:02:58 +0000 |
commit | 611624bc08f525d19e1bd548a7d005aa73a53145 (patch) | |
tree | f53bcfab25e8038ae485f707da619e37f46741a9 /httemplate/edit/svc_phone.cgi | |
parent | 919bcddcb7a1ec551d27faac925fedc7d9644f3c (diff) |
domain names in netsapiens export (domain name association w/svc_phone), RT#5864
Diffstat (limited to 'httemplate/edit/svc_phone.cgi')
-rw-r--r-- | httemplate/edit/svc_phone.cgi | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/httemplate/edit/svc_phone.cgi b/httemplate/edit/svc_phone.cgi index 55ee890f4..3c7b75249 100644 --- a/httemplate/edit/svc_phone.cgi +++ b/httemplate/edit/svc_phone.cgi @@ -1,22 +1,11 @@ <% include( 'elements/svc_Common.html', 'name' => 'Phone number', 'table' => 'svc_phone', - 'fields' => [ 'countrycode', - { field => 'phonenum', - type => 'select-did', - label => 'Phone number', - }, - { field => 'pbxsvc', - type => 'select-svc_pbx', - label => 'PBX', - }, - 'sip_password', - 'pin', - 'phone_name', - ], + 'fields' => \@fields, 'labels' => { 'countrycode' => 'Country code', 'phonenum' => 'Phone number', + 'domsvc' => 'Domain', 'sip_password' => 'SIP password', 'pin' => 'Voicemail PIN', 'phone_name' => 'Name', @@ -29,4 +18,28 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific? +my $conf = new FS::Conf; + +my @fields = ( 'countrycode', + { field => 'phonenum', + type => 'select-did', + label => 'Phone number', + }, + ); + +push @fields, { field => 'domsvc', + type => 'select-svc-domain', + label => 'Domain', + } + if $conf->exists('svc_phone-domain'); + +push @fields, { field => 'pbxsvc', + type => 'select-svc_pbx', + label => 'PBX', + }, + 'sip_password', + 'pin', + 'phone_name', +; + </%init> |