X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=7308c72dacab3ed51a580d2f52137bc9f16625fb;hb=8fb243091939f37e24163925be78f4e9f3485978;hp=45cb69fc2d30c1f033c2b86e594e01377a106c2e;hpb=e47e9758f480c664bfc3917d798cd69c7d354999;p=freeside.git
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi
index 45cb69fc2..7308c72da 100755
--- a/httemplate/edit/cust_main.cgi
+++ b/httemplate/edit/cust_main.cgi
@@ -1,444 +1,287 @@
-<%
-
- #for misplaced logic below
- #use FS::part_pkg;
-
- #for false laziness below (now more properly lazy)
- #use FS::svc_acct_pop;
-
- #for (other) false laziness below
- #use FS::agent;
- #use FS::type_pkgs;
+<% include('/elements/header.html',
+ "Customer $action",
+ '',
+ ' onUnload="myclose()"' #hmm, in billing.html
+) %>
-my $conf = new FS::Conf;
+<% include('/elements/error.html') %>
-#get record
+
+my $action = $custnum ? 'Edit' : 'Add';
+$action .= ": ". $cust_main->name if $custnum;
-<%= include('/elements/footer.html') %>
+my $r = qq!* !;
+%init>