summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2004-08-19 10:53:33 +0000
committerivan <ivan>2004-08-19 10:53:33 +0000
commitc174d97e14dcd23153587ab0b97e082b5b1af619 (patch)
tree3bbf746bb9016d48765cd9e1cecf4f6a51ab87c6
parent3362fbec6c7bcf31004683dc9afe4c3110acd309 (diff)
shell field is now a dropdown of legal shells, closes: Bug#118
-rwxr-xr-xhttemplate/edit/part_svc.cgi7
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi
index 683bf9ec5..643c414c1 100755
--- a/httemplate/edit/part_svc.cgi
+++ b/httemplate/edit/part_svc.cgi
@@ -67,6 +67,7 @@ blank <B>slipip</B> as well as a fixed shell something like <B>/bin/true</B> or
<%
#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',
@@ -87,7 +88,11 @@ my %defs = (
'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',