<% include( 'elements/browse.html',
- 'title' => 'Internal Access Groups',
- 'menubar' => [ 'Internal users' => $p.'browse/access_user.html', ],
+ 'title' => 'Employee Groups',
+ 'menubar' => [ 'View Employees' => $p.'browse/access_user.html', ],
'html_init' => $html_init,
- 'name' => 'internal access groups',
+ 'name' => 'employee groups',
'query' => { 'table' => 'access_group',
'hashref' => {},
- 'extra_sql' => 'ORDER BY groupname', #??
+ 'order_by' => 'ORDER BY groupname', #??
},
'count_query' => $count_query,
'header' => [ '#',
<%once>
my $html_init =
- "Internal access groups control access to the back-office interface.<BR><BR>".
- qq!<A HREF="${p}edit/access_group.html"><I>Add an internal access group</I></A><BR><BR>!;
+ "Employee groups control access to the back-office interface. Each employee can be assigned to one or more groups.<BR><BR>".
+ qq!<A HREF="${p}edit/access_group.html"><I>Add an employee group</I></A><BR><BR>!;
#false laziness w/access_user.html & agent_type.cgi
my $agents_sub = sub {
'<TR><TH BGCOLOR="#dcdcdc">'. $_. '</TH></TR>'.
'<TR><TD>'.
- join('<BR>', grep { warn "$access_group->access_right($_): ".
- $access_group->access_right($_). "\n";
- $access_group->access_right($_); }
+ join('<BR>', grep { $access_group->access_right($_); }
map { ref($_) ? $_->{'rightname'} : $_; }
@{ $rights{$_} }
).