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' ];
34 %><%= include( 'elements/browse.html',
35 'title' => 'Agent Types',
36 'menubar' => [ #'Main menu' => $p,
37 'Agents' =>"${p}browse/agent.cgi",
39 'html_init' => $html_init,
40 'name' => 'agent types',
41 'query' => { 'table' => 'agent_type',
43 'extra_sql' => 'ORDER BY typenum', # 'ORDER BY atype',
45 'count_query' => $count_query,
50 'fields' => [ 'typenum',