[freeside-commits] freeside/httemplate/edit part_svc.cgi, 1.71.2.3, 1.71.2.4 svc_phone.cgi, 1.12, 1.12.4.1
Erik Levinson
levinse at wavetail.420.am
Sat Dec 25 20:09:38 PST 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv29725/httemplate/edit
Modified Files:
Tag: FREESIDE_2_1_BRANCH
part_svc.cgi svc_phone.cgi
Log Message:
added basic LNP capability to svc_phone including SS, RT10948
Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.71.2.3
retrieving revision 1.71.2.4
diff -u -w -d -r1.71.2.3 -r1.71.2.4
--- part_svc.cgi 8 Nov 2010 21:42:44 -0000 1.71.2.3
+++ part_svc.cgi 26 Dec 2010 04:09:36 -0000 1.71.2.4
@@ -333,6 +333,15 @@
% 'multiple' => ($flag eq 'S'),
% );
%
+% } elsif ( $def->{type} eq 'select-lnp_status.html' ) {
+%
+% $html .= include('/elements/select-lnp_status.html',
+% 'curr_value' => $value,
+% 'element_name' => "${layer}__${field}",
+% 'element_etc' => $disabled,
+% 'multiple' => ($flag eq 'S'),
+% );
+%
% } elsif ( $def->{type} eq 'radius_usergroup_selector' ) {
%
% #XXX disable the RADIUS usergroup selector? ugh it sure does need
Index: svc_phone.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/svc_phone.cgi,v
retrieving revision 1.12
retrieving revision 1.12.4.1
diff -u -w -d -r1.12 -r1.12.4.1
--- svc_phone.cgi 12 Mar 2010 21:56:32 -0000 1.12
+++ svc_phone.cgi 26 Dec 2010 04:09:36 -0000 1.12.4.1
@@ -1,17 +1,6 @@
<% include( 'elements/svc_Common.html',
'table' => 'svc_phone',
'fields' => \@fields,
- 'labels' => {
- 'svcnum' => 'Service',
- 'countrycode' => 'Country code',
- 'phonenum' => 'Phone number',
- 'domsvc' => 'Domain',
- 'sip_password' => 'SIP password',
- 'pin' => 'Voicemail PIN',
- 'phone_name' => 'Name',
- 'pbxsvc' => 'PBX',
- 'locationnum' => 'E911 location',
- },
'svc_new_callback' => sub {
my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt ) = @_;
$svc_x->locationnum($cust_pkg->locationnum) if $cust_pkg;
@@ -73,5 +62,29 @@
{ field => 'custnum', type=> 'hidden' }, #for new cust_locations
;
+if ( $conf->exists('svc_phone-lnp') ) {
+ push @fields,
+ { value => 'Number Portability',
+ type => 'tablebreak-tr-title',
+ colspan => 7,
+ },
+ { field => 'lnp_status',
+ type => 'select-lnp_status',
+ },
+ { field => 'portable',
+ type => 'checkbox',
+ },
+ 'lrn',
+ { field => 'lnp_desired_due_date',
+ type => 'input-date-field',
+ },
+ { field => 'lnp_due_date',
+ type => 'input-date-field',
+ noinit => 1,
+ },
+ 'lnp_other_provider',
+ 'lnp_other_provider_account',
+;
+}
</%init>
More information about the freeside-commits
mailing list