X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fagent.cgi;h=6707d66a4ba91d01a9199c0458937bccb3da2102;hb=dd65ba99bb9281571f19744154a3b03bcd3f01ab;hp=8a1cb2ae1e15d860a9247c4e0e9bafaa6fd8bfe5;hpb=2041a9143fac20b79ead4a1ae01224dedf5b27c2;p=freeside.git diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 8a1cb2ae1..6707d66a4 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -1,5 +1,148 @@ - -<% +<% include("/elements/header.html","$action Agent", menubar( + 'View all agents' => $p. 'browse/agent.cgi', +)) %> + +<% include('/elements/error.html') %> + +
+ +<% include('/elements/footer.html') %> + +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $agent; if ( $cgi->param('error') ) { @@ -14,66 +157,7 @@ if ( $cgi->param('error') ) { $agent = new FS::agent {}; } my $action = $agent->agentnum ? 'Edit' : 'Add'; -my $hashref = $agent->hashref; -%> - -<%= header("$action Agent", menubar( - 'Main Menu' => $p, - 'View all agents' => $p. 'browse/agent.cgi', -)) %> - -<% if ( $cgi->param('error') ) { %> -Error: <%= $cgi->param('error') %> -<% } %> - - -