X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_svc.cgi;h=ee0457bae16cb4e9063be574186b6a618fa4e700;hb=8fe3fe6ae4075fab902685fd145c48122baedfcb;hp=63ec1dce1cdbd41ad1ce298d57a3150b36db9956;hpb=a4c96748eb6eab29a70f3a944c6520283a635c78;p=freeside.git 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';