X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Faccess_user.html;h=86ce25374caea144656777208a5063c885edb7fd;hb=7aef2e455fe8a4722036f231ee8609ac63b2a9c9;hp=224d8d722bdd43a94019fc3da69e4ebc6d654124;hpb=0930d22ffc440f80c1b222b2e750cadbabd9e8f6;p=freeside.git
diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html
index 224d8d722..86ce25374 100644
--- a/httemplate/edit/access_user.html
+++ b/httemplate/edit/access_user.html
@@ -1,5 +1,5 @@
<% include( 'elements/edit.html',
- 'name' => 'Internal User',
+ 'name' => 'Employee',
'table' => 'access_user',
'fields' => [
'username',
@@ -7,26 +7,27 @@
{ field=>'_password2', type=>'password' },
'last',
'first',
+ { field=>'user_custnum', type=>'search-cust_main', },
{ field=>'disabled', type=>'checkbox', value=>'Y' },
],
'labels' => {
- 'usernum' => 'User number',
- 'username' => 'Username',
- '_password' => 'Password',
- '_password2'=> 'Re-enter Password',
- 'last' => 'Last name',
- 'first' => 'First name',
- 'disabled' => 'Disable employee',
+ 'usernum' => 'User number',
+ 'username' => 'Username',
+ '_password' => 'Password',
+ '_password2' => 'Re-enter Password',
+ 'last' => 'Last name',
+ 'first' => 'First name',
+ 'user_custnum' => 'Customer (optional)',
+ 'disabled' => 'Disable employee',
},
- 'edit_callback' => sub { my( $c, $o ) = @_;
- $o->set('_password', '');
- },
+ 'edit_callback' => \&edit_callback,
+ 'field_callback'=> \&field_callback,
'viewall_dir' => 'browse',
'html_bottom' =>
sub {
my $access_user = shift;
- '
Internal Access Groups
'.
+ '
Employee Groups
'.
ntable("#cccccc",2).
'