From: ivan Date: Tue, 12 Feb 2002 01:13:23 +0000 (+0000) Subject: service definition domsvc is now a domain pulldown X-Git-Tag: freeside_1_4_0pre11~67 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=8fe3fe6ae4075fab902685fd145c48122baedfcb service definition domsvc is now a domain pulldown closes: Bug#328 --- diff --git a/httemplate/edit/part_svc.cgi b/httemplate/edit/part_svc.cgi index 63ec1dce1..ee0457bae 100755 --- a/httemplate/edit/part_svc.cgi +++ b/httemplate/edit/part_svc.cgi @@ -111,7 +111,13 @@ my %defs = ( 'gid' => 'GID (when blank, defaults to UID)', 'shell' => 'Shell (all service definitions should have a default or fixed shell that is present in the shells configuration file)', 'finger' => 'GECOS', - 'domsvc' => 'svcnum from svc_domain', + 'domsvc' => { + desc =>'svcnum from svc_domain', + type =>'select', + select_table => 'svc_domain', + select_key => 'svcnum', + select_label => 'domain', + }, }, 'svc_domain' => { 'domain' => 'Domain', @@ -194,8 +200,10 @@ function fixup(what) { : $part_svc_column->columnflag; #print "$ptmp$field"; print "$field"; - print "- $defs{$svcdb}{$field}" - if defined $defs{$svcdb}{$field}; + my $def = $defs{$svcdb}{$field}; + my $desc = ref($def) ? $def->{desc} : $def; + + print "- $desc" if $desc; print ""; print qq!Off"; @@ -203,8 +211,24 @@ function fixup(what) { ' CHECKED'x($flag eq 'D'). ">Default "; print qq!Fixed "; - print qq!!, - "\n"; + print '
'; + if ( ref($def) ) { + if ( $def->{type} eq 'select' ) { + print qq!!; + } + print "\n"; #$ptmp=''; } print "" unless $svcdb eq 'konq_kludge';