X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fsvc_phone.cgi;h=f8582057ea8bf0d3ad8085b475b23d829dcebe16;hb=3e8421688bfed701dd6d3be79c270db4af2b3e8d;hp=8ee71b82dfd4ce0a342b58e9b0cfcdc113e8e32f;hpb=66eaa4a82b7fc52e711ecdefc95feedf629f71b1;p=freeside.git diff --git a/httemplate/edit/svc_phone.cgi b/httemplate/edit/svc_phone.cgi index 8ee71b82d..f8582057e 100644 --- a/httemplate/edit/svc_phone.cgi +++ b/httemplate/edit/svc_phone.cgi @@ -6,6 +6,11 @@ my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt ) = @_; $svc_x->locationnum($cust_pkg->locationnum) if $cust_pkg; }, + 'svc_edit_callback' => sub { + my( $cgi, $svc_x, $part_svc, $cust_pkg, $fields, $opt) = @_; + my $conf = new FS::Conf; + $svc_x->sip_password('*HIDDEN*') unless $conf->exists('showpasswords'); + }, &> <%init> @@ -86,6 +91,16 @@ my $begin_callback = sub { ); }, }, + { field => 'e911_class', + type => 'select', + options => [ keys(%{ FS::svc_phone->e911_classes }) ], + labels => FS::svc_phone->e911_classes, + }, + { field => 'e911_type', + type => 'select', + options => [ keys(%{ FS::svc_phone->e911_types }) ], + labels => FS::svc_phone->e911_types, + }, { field => 'custnum', type=> 'hidden' }, #for new cust_locations ; } @@ -116,6 +131,25 @@ my $begin_callback = sub { ; } + if ( ! $bulk ) { + + push @$fields, + { + type => 'tablebreak-tr-title', + value => 'Carrier Information', + colspan => 8, + }, + { field => 'sms_carrierid', + label => 'SMS Carrier', + type => 'select-cdr_carrier', + }, + 'sms_account', + 'max_simultaneous', + ; + + } + }; +