1 <& elements/svc_Common.html,
3 'edit_url' => $edit_url, #$p."edit/svc_Common.html?svcdb=$table;svcnum=",
8 # false laziness w/edit/svc_Common.html
10 $cgi->param('svcdb') =~ /^(svc_\w+)$/ or die "unparsable svcdb";
12 require "FS/$table.pm";
14 my $edit_url = svc_url( 'm' => $m, 'action' => 'edit', 'svcdb' => $table, query => '' );
17 if ( UNIVERSAL::can("FS::$table", 'table_info') ) {
18 $opt{'name'} = "FS::$table"->table_info->{'name'};
20 my $fields = "FS::$table"->table_info->{'fields'};
21 my %labels = map { $_ => ( ref($fields->{$_})
22 ? $fields->{$_}{'label'}
27 $opt{'labels'} = \%labels;