X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_virtual_field.cgi;h=2e12603a04924450b1f81d054568cc47b76cb3c0;hb=ab02d4756be1fca80ef12ae74f4dda9ee5f01106;hp=a0009dabd12bf74f94e1ce07f2c87c2f36ccde18;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/httemplate/browse/part_virtual_field.cgi b/httemplate/browse/part_virtual_field.cgi index a0009dabd..2e12603a0 100644 --- a/httemplate/browse/part_virtual_field.cgi +++ b/httemplate/browse/part_virtual_field.cgi @@ -1,39 +1,46 @@ -<%= header('Virtual field definitions', menubar('Main Menu' => $p)) %> -<% +<% include("/elements/header.html",'Virtual field definitions', menubar('Main Menu' => $p)) %> +% +% +%my %pvfs; +%my $block; +%my $p2 = popurl(2); +%my $dbtable; +% +%foreach (qsearch('part_virtual_field', {})) { +% push @{ $pvfs{$_->dbtable} }, $_; +%} +% +% if ($cgi->param('error')) { -my %pvfs; -my $block; -my $p2 = popurl(2); -my $dbtable; - -foreach (qsearch('part_virtual_field', {})) { - push @{ $pvfs{$_->dbtable} }, $_; -} -%> - -<% if ($cgi->param('error')) { %> - Error: <%=$cgi->param('error')%> + Error: <%$cgi->param('error')%>

-<% } %> +% } -Add a new field

-<% foreach $dbtable (sort { $a cmp $b } keys (%pvfs)) { %> -

<%=$dbtable%>

+Add a new field

+% foreach $dbtable (sort { $a cmp $b } keys (%pvfs)) { -<%=table()%> +

<%$dbtable%>

+ +<%table()%> Field nameDescription -<% foreach my $pvf (sort {$a->name cmp $b->name} @{ $pvfs{$dbtable} }) { %> +% foreach my $pvf (sort {$a->name cmp $b->name} @{ $pvfs{$dbtable} }) { + - - <%=$pvf->name%> - <%=$pvf->label%> + + <%$pvf->name%> + <%$pvf->label%> -<% } %> +% } + -<% } %> +% } + - +<%init> +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); +