RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / browse / access_group.html
index 736ab9c..2df0ba0 100644 (file)
@@ -1,11 +1,11 @@
 <% 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'      => [ '#',
@@ -28,8 +28,8 @@
 <%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 {
@@ -81,9 +81,7 @@ my $rights_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{$_} }
          ).