X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_virtual_field.cgi;h=2e12603a04924450b1f81d054568cc47b76cb3c0;hb=e478493f1b92afddfa5360cd7160a5d168ef370e;hp=9bb5c1373a315011f0440ccbe6ea00bf04e50402;hpb=58d44fbe5eb9ab32e6d87063a4a3b22ddba9a828;p=freeside.git diff --git a/httemplate/browse/part_virtual_field.cgi b/httemplate/browse/part_virtual_field.cgi index 9bb5c1373..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 $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'); +