X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fagent.cgi;h=8a1cb2ae1e15d860a9247c4e0e9bafaa6fd8bfe5;hp=449456cdd7efc1e7d5fc6a79d5b7815b79c0e4e0;hb=b59a412755582d30b4f7be2147b6ad32037e6f59;hpb=e17e58178d528e16d45c333996f763afda55e054 diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi index 449456cdd..8a1cb2ae1 100755 --- a/httemplate/edit/agent.cgi +++ b/httemplate/edit/agent.cgi @@ -16,59 +16,64 @@ if ( $cgi->param('error') ) { my $action = $agent->agentnum ? 'Edit' : 'Add'; my $hashref = $agent->hashref; -print header("$action Agent", menubar( +%> + +<%= header("$action Agent", menubar( 'Main Menu' => $p, 'View all agents' => $p. 'browse/agent.cgi', -)); +)) %> -print qq!Error: !, $cgi->param('error'), - "" - if $cgi->param('error'); +<% if ( $cgi->param('error') ) { %> +Error: <%= $cgi->param('error') %> +<% } %> -print '
', - qq!!, - "Agent #", $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)"; + + +Agent #<%= $hashref->{agentnum} ? $hashref->{agentnum} : "(NEW)" %> -print &ntable("#cccccc", 2, ''), < Agent - + Agent type {disabled} eq 'Y' ? ' CHECKED' : '' %>> + +<% } %> - + - + +<% if ( dbdef->table('agent')->column('username') ) { %> + + Agent interface username + + + + Agent interface password + + +<% } %> -END -print qq!
!; - -print <"> -END - -%>