X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fbrowse%2Faccess_group.html;h=2df0ba053f06c2e78418918f758b61b2415deebc;hp=dbce14df15831760c29a28af254f1715403b4491;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=b15baa7b22f001b6ccfea302580f327d30f13706 diff --git a/httemplate/browse/access_group.html b/httemplate/browse/access_group.html index dbce14df1..2df0ba053 100644 --- a/httemplate/browse/access_group.html +++ b/httemplate/browse/access_group.html @@ -1,11 +1,11 @@ <% include( 'elements/browse.html', 'title' => 'Employee Groups', - 'menubar' => [ 'Internal users' => $p.'browse/access_user.html', ], + 'menubar' => [ 'View Employees' => $p.'browse/access_user.html', ], 'html_init' => $html_init, 'name' => 'employee groups', 'query' => { 'table' => 'access_group', 'hashref' => {}, - 'extra_sql' => 'ORDER BY groupname', #?? + 'order_by' => 'ORDER BY groupname', #?? }, 'count_query' => $count_query, 'header' => [ '#', @@ -28,7 +28,7 @@ <%once> my $html_init = - "Employee groups control access to the back-office interface.

". + "Employee groups control access to the back-office interface. Each employee can be assigned to one or more groups.

". qq!Add an employee group

!; #false laziness w/access_user.html & agent_type.cgi @@ -81,9 +81,7 @@ my $rights_sub = sub { ''. $_. ''. ''. - join('
', grep { warn "$access_group->access_right($_): ". - $access_group->access_right($_). "\n"; - $access_group->access_right($_); } + join('
', grep { $access_group->access_right($_); } map { ref($_) ? $_->{'rightname'} : $_; } @{ $rights{$_} } ).