freeside/httemplate/edit part_svc.cgi,1.40,1.41

ivan ivan at pouncequick.420.am
Thu Aug 19 03:53:35 PDT 2004


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory pouncequick:/tmp/cvs-serv29697

Modified Files:
	part_svc.cgi 
Log Message:
shell field is now a dropdown of legal shells, closes: Bug#118

Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- part_svc.cgi	13 Feb 2004 13:53:24 -0000	1.40
+++ part_svc.cgi	19 Aug 2004 10:53:32 -0000	1.41
@@ -71,6 +71,7 @@
 
 #these might belong somewhere else for other user interfaces 
 #pry need to eventually create stuff that's shared amount UIs
+my $conf = new FS::Conf;
 my %defs = (
   'svc_acct' => {
     'dir'       => 'Home directory',
@@ -91,7 +92,11 @@
     'quota'     => '',
     '_password' => 'Password',
     'gid'       => 'GID (when blank, defaults to UID)',
-    'shell'     => 'Shell (all service definitions should have a default or fixed shell that is present in the <b>shells</b> configuration file)',
+    'shell'     => {
+                     desc =>'Shell (all service definitions should have a default or fixed shell that is present in the <b>shells</b> configuration file)',
+                     type =>'select',
+                     select_list => [ $conf->config('shells') ],
+                   },
     'finger'    => 'GECOS',
     'domsvc'    => {
                      desc =>'svcnum from svc_domain',




More information about the freeside-commits mailing list