X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fagent.cgi;h=830862ff866267c32c0e3cb1233ff58a8a701074;hb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;hp=449456cdd7efc1e7d5fc6a79d5b7815b79c0e4e0;hpb=0ebeec96313dd7edfca340f01f8fbbbac1f4aa1d;p=freeside.git diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 449456cdd..830862ff8 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -1,5 +1,84 @@ - -<% +<% include("/elements/header.html","$action Agent", menubar( + 'Main Menu' => $p, + 'View all agents' => $p. 'browse/agent.cgi', +)) %> +% if ( $cgi->param('error') ) { + +Error: <% $cgi->param('error') %> +% } + + +
+ +<% include('/elements/footer.html') %> + +<%init> my $agent; if ( $cgi->param('error') ) { @@ -14,61 +93,9 @@ if ( $cgi->param('error') ) { $agent = new FS::agent {}; } my $action = $agent->agentnum ? 'Edit' : 'Add'; -my $hashref = $agent->hashref; - -print header("$action Agent", menubar( - 'Main Menu' => $p, - 'View all agents' => $p. 'browse/agent.cgi', -)); - -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); - -print '