X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fagent.cgi;h=f8d0edc1a4d3e9b9668ce63b74fe1f3b1b45a550;hb=4b4b3ca9cb0b7336293b759549b78fc903a7d8c8;hp=449456cdd7efc1e7d5fc6a79d5b7815b79c0e4e0;hpb=a63b2729682586d8860290576e9307629424dbe0;p=freeside.git diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 449456cdd..f8d0edc1a 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -1,4 +1,3 @@ - <% my $agent; @@ -16,59 +15,95 @@ if ( $cgi->param('error') ) { my $action = $agent->agentnum ? 'Edit' : 'Add'; my $hashref = $agent->hashref; -print header("$action Agent", menubar( +my $conf = new FS::Conf; + +%> + +<%= header("$action Agent", menubar( 'Main Menu' => $p, 'View all agents' => $p. 'browse/agent.cgi', -)); +)) %> + +<% if ( $cgi->param('error') ) { %> +Error: <%= $cgi->param('error') %> +<% } %> -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); +
+ +Agent #<%= $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)" %> -print '', - qq!!, - "Agent #", $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)"; +<%= &ntable("#cccccc", 2, '') %> -print &ntable("#cccccc", 2, ''), < Agent - + - - Agent type - + + <% foreach my $agent_type (qsearch('agent_type',{})) { %> +