X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Fpart_virtual_field.cgi;h=b18440036ff3882cd43728a8954973b989ef9e08;hb=2419a740ea77d7c1fd2151dbf8822fc40fd94053;hp=a0009dabd12bf74f94e1ce07f2c87c2f36ccde18;hpb=2041a9143fac20b79ead4a1ae01224dedf5b27c2;p=freeside.git
diff --git a/httemplate/browse/part_virtual_field.cgi b/httemplate/browse/part_virtual_field.cgi
index a0009dabd..b18440036 100644
--- a/httemplate/browse/part_virtual_field.cgi
+++ b/httemplate/browse/part_virtual_field.cgi
@@ -1,39 +1,42 @@
-<%= header('Virtual field definitions', menubar('Main Menu' => $p)) %>
-<%
+<% include('/elements/header.html', 'Virtual field definitions') %>
-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')%>
-
-<% } %>
+<% include('/elements/error.html') %>
-Add a new field
+Add a new field
+% foreach $dbtable (sort { $a cmp $b } keys (%pvfs)) {
-<% foreach $dbtable (sort { $a cmp $b } keys (%pvfs)) { %>
-