communigate (phase 2): rules. RT#7514
[freeside.git] / httemplate / edit / svc_phone.cgi
index 779708b..b77d962 100644 (file)
@@ -44,7 +44,10 @@ push @fields, { field => 'pbxsvc',
               },
               'sip_password',
               'pin',
-              'phone_name',
+              { field => 'phone_name',
+                type  => 'text',
+                maxlength => $conf->config('svc_phone-phone_name-max_length'),
+              },
 
               { value   => 'E911 Information',
                 type    => 'tablebreak-tr-title',
@@ -62,10 +65,13 @@ push @fields, { field => 'pbxsvc',
                   my $cust_pkg = qsearchs('cust_pkg', {'pkgnum' => $pkgnum});
                   my $cust_main = $cust_pkg ? $cust_pkg->cust_main : '';
                   ( 'no_bold'   => 1,
+                    'cust_pkg'  => $cust_pkg,
                     'cust_main' => $cust_main,
                   );
                 },
               },
+              { field => 'custnum', type=> 'hidden' }, #for new cust_locations
 ;
 
+
 </%init>