1 <% include('elements/svc_Common.html',
3 'edit_url' => $p."edit/svc_Common.html?svcdb=$table;svcnum=",
9 # false laziness w/edit/svc_Common.html
11 $cgi->param('svcdb') =~ /^(svc_\w+)$/ or die "unparsable svcdb";
13 require "FS/$table.pm";
16 if ( UNIVERSAL::can("FS::$table", 'table_info') ) {
17 $opt{'name'} = "FS::$table"->table_info->{'name'};
19 my $fields = "FS::$table"->table_info->{'fields'};
20 my %labels = map { $_ => ( ref($fields->{$_})
21 ? $fields->{$_}{'label'}
26 $opt{'labels'} = \%labels;