-%><%= include( 'elements/browse.html',
- 'title' => 'Internal Users',
- 'menubar' => [ #'Main menu' => $p,
- 'Internal access groups' => $p.'browse/access_group.html',
- ],
- 'html_init' => $html_init,
- 'name' => 'internal users',
- 'query' => { 'table' => 'access_user',
- 'hashref' => {},
- 'extra_sql' => 'ORDER BY last, first',
- },
- 'count_query' => $count_query,
- 'header' => [ '#',
- 'Username',
- 'Full name',
- 'Groups'
- ],
- 'fields' => [ 'usernum',
- 'username',
- 'name', # sub { shift->name },
- $groups_sub,
- ],
- 'links' => [ $link,
- $link,
- $link,
- ''
- ],
- )
-%>
+my @header = ( '#', 'Username', 'Full name', 'Groups', 'Customer' );
+my @fields = ( 'usernum', 'username', 'name', $groups_sub, $cust_sub, );
+my $align = 'rllll';
+my @links = ( $link, $link, $link, '', $cust_link );
+
+#if ( FS::Conf->new->config('ticket_system') ) {
+# push @header, 'Ticketing';
+# push @fields, sub {
+# my $access_user = shift;
+#
+# };
+# $align .= 'l';
+# push @links, '';
+#}
+
+</%init>