X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fagent.cgi;h=40115a932b35fd143bb5d085214299bf27c95931;hb=50f25b285b2caf77d267ed66f03e56924ad7229f;hp=25e4765ba5aed191646d65508c3ba74de7c6d8ea;hpb=22a35047ecdffff80110e06cc08fc84f9ddba9b0;p=freeside.git diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 25e4765ba..40115a932 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -15,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; + +%> + +<%= 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') %> +<% } %> -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',{})) { %> +