first part of ACL and re-skinning work and some other small stuff
[freeside.git] / httemplate / edit / access_user.html
1 <%= include( 'elements/edit.html',
2                  'name'   => 'Internal User',
3                  'table'  => 'access_user',
4                  'fields' => [
5                                'username',
6                                { field=>'_password', type=>'password' },
7                                'last',
8                                'first',
9                              ],
10                  'labels' => { 
11                                'usernum'   => 'User number',
12                                'username'  => 'Username',
13                                '_password' => 'Password',
14                                'last'      => 'Last name',
15                                'first'     => 'First name',
16                              },
17                  'viewall_dir' => 'browse',
18                  'html_bottom' =>
19                    sub {
20                      my $access_user = shift;
21
22                      '<BR>Internal Access Groups<BR>'.
23                      ntable("#cccccc",2).
24                      '<TR><TD>'.
25                      include( '/elements/checkboxes-table.html',
26                                 'source_obj'   => $access_user,
27                                 'link_table'   => 'access_usergroup',
28                                 'target_table' => 'access_group',
29                                 'name_col'     => 'groupname',
30                                 'target_link'  => $p.'edit/access_group.html?',
31                                 #'disable-able' => 1,
32                             ).
33                      '</TR></TD></TABLE>'
34                      ;
35                    },
36            )
37 %>