X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_user.html;h=73488ef9a6e1ba786d40ba3c81443990f92f0fa6;hb=03ceab71dad1e5eb366865d304e5e459cc905ce4;hp=df580a20d7c2370b4ed1a1212487aece4ba2350b;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index df580a20d..73488ef9a 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -1,9 +1,10 @@ <% include( 'elements/edit.html', - 'name' => 'Internal User', + 'name' => 'Employee', 'table' => 'access_user', 'fields' => [ 'username', { field=>'_password', type=>'password' }, + { field=>'_password2', type=>'password' }, 'last', 'first', { field=>'disabled', type=>'checkbox', value=>'Y' }, @@ -12,16 +13,20 @@ 'usernum' => 'User number', 'username' => 'Username', '_password' => 'Password', + '_password2'=> 'Re-enter Password', 'last' => 'Last name', 'first' => 'First name', 'disabled' => 'Disable employee', }, + 'edit_callback' => sub { my( $c, $o ) = @_; + $o->set('_password', ''); + }, 'viewall_dir' => 'browse', 'html_bottom' => sub { my $access_user = shift; - '
Internal Access Groups
'. + '
Employee Groups
'. ntable("#cccccc",2). ''. include( '/elements/checkboxes-table.html', @@ -37,3 +42,9 @@ }, ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +