% include( 'elements/edit.html',
'name' => 'Employee',
'table' => 'access_user',
'fields' => [
'username',
@pw_fields,
'last',
'first',
{ field=>'sched_item_enabled', type=>'checkbox', value=>'Y' },
{ field=>'user_custnum', type=>'search-cust_main', },
{ field => 'report_salesnum',
type => 'select-sales',
empty_label => 'all',
},
{ field=>'disabled', type=>'checkbox', value=>'Y' },
],
'labels' => {
'usernum' => 'User number',
'username' => 'Username',
'_password' => 'Password',
'_password2' => 'Re-enter Password',
'last' => 'Last name',
'first' => 'First name',
'sched_item_enabled' => 'Installer',
'user_custnum' => 'Customer (optional)',
'report_salesnum' => 'Limit commission report to sales person',
'disabled' => 'Disable employee',
},
'edit_callback' => \&edit_callback,
'field_callback'=> \&field_callback,
'viewall_dir' => 'browse',
'html_bottom' =>
sub {
my $access_user = shift;
'
Employee Groups
'.
ntable("#cccccc",2).
'