X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_user.html;h=86ce25374caea144656777208a5063c885edb7fd;hb=431c9ca4fab151862bd24322bf8a1f9252fb38fc;hp=a8cb341e691f07e3abe041180e70dcafe939c778;hpb=eab5690e7cd970706f709ac0ef4f1c3e317fcd7d;p=freeside.git
diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html
index a8cb341e6..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('_password2', $o->_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).
'