[freeside-commits] freeside/httemplate/edit svc_phone.cgi, 1.7.4.1, 1.7.4.2
Ivan,,,
ivan at wavetail.420.am
Sun Mar 7 23:03:01 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv12482/httemplate/edit
Modified Files:
Tag: FREESIDE_1_9_BRANCH
svc_phone.cgi
Log Message:
domain names in netsapiens export (domain name association w/svc_phone), RT#5864
Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_phone.cgi,v
retrieving revision 1.7.4.1
retrieving revision 1.7.4.2
diff -u -w -d -r1.7.4.1 -r1.7.4.2
--- svc_phone.cgi 25 Jan 2010 22:17:29 -0000 1.7.4.1
+++ svc_phone.cgi 8 Mar 2010 07:02:59 -0000 1.7.4.2
@@ -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>
More information about the freeside-commits
mailing list