1 <% include('elements/svc_Common.html',
3 'post_url' => popurl(1). "process/svc_Common.html",
10 unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
12 # false laziness w/view/svc_Common.html
14 $cgi->param('svcdb') =~ /^(svc_\w+)$/ or die "unparsable svcdb";
16 require "FS/$table.pm";
19 if ( UNIVERSAL::can("FS::$table", 'table_info') ) {
20 $opt{'name'} = "FS::$table"->table_info->{'name'};
22 my $fields = "FS::$table"->table_info->{'fields'};
24 my %labels = map { $_ => ( ref($fields->{$_})
25 ? $fields->{$_}{'label'}
30 $opt{'labels'} = \%labels;
32 #transform FS::svc_* table_info's structure into one edit.html likes
33 delete $fields->{svcnum};
34 $opt{'fields'} = [ map { ref $fields->{$_}