4 % 'Agent types define groups of packages that you can then assign to'.
5 % ' particular agents.<BR><BR>'.
6 % qq!<A HREF="${p}edit/agent_type.cgi"><I>Add a new agent type</I></A><BR><BR>!;
8 %my $count_query = 'SELECT COUNT(*) FROM agent_type';
10 %#false laziness w/access_user.html
11 %my $packages_sub = sub {
12 % my $agent_type = shift;
16 % #my $part_pkg = $type_pkgs->part_pkg;
19 % #'data' => $part_pkg->pkg. ' - '. $part_pkg->comment,
20 % 'data' => $type_pkgs->pkg. ' - '. $type_pkgs->comment,
22 % 'link' => $p. 'edit/part_pkg.cgi?'. $type_pkgs->pkgpart,
27 % $agent_type->type_pkgs_enabled
32 %my $link = [ $p.'edit/agent_type.cgi?', 'typenum' ];
35 <% include( 'elements/browse.html',
36 'title' => 'Agent Types',
37 'menubar' => [ #'Main menu' => $p,
38 'Agents' =>"${p}browse/agent.cgi",
40 'html_init' => $html_init,
41 'name' => 'agent types',
42 'query' => { 'table' => 'agent_type',
44 'extra_sql' => 'ORDER BY typenum', # 'ORDER BY atype',
46 'count_query' => $count_query,
51 'fields' => [ 'typenum',