summaryrefslogtreecommitdiff
path: root/httemplate/edit/access_group.html
blob: d7f7667f4c8044923299232ac7ac90f8e92db2ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<%= include( 'elements/edit.html',
                 'name'   => 'Internal Access Group',
                 'table'  => 'access_group',
                 'labels' => { 
                               'groupnum'   => 'Group number',
                               'groupname'  => 'Group name',
                             },

                 'viewall_dir' => 'browse',

                 'html_bottom' =>
                   sub {
                     my $access_group = shift;

                     "<BR>Group virtualized to customers of agents:<BR>".
                     ntable("#cccccc",2).
                     '<TR><TD>'.
                     include( '/elements/checkboxes-table.html',
                                'source_obj'   => $access_group,
                                'link_table'   => 'access_groupagent',
                                'target_table' => 'agent',
                                'name_col'     => 'agent',
                                'target_link'  => $p.'edit/agent.cgi?',
                                'disable-able' => 1,
                            ).
                     '</TR></TD></TABLE>'.

                     "<BR>Group rights:<BR>".
                     ntable("#cccccc",2).
                     '<TR><TD>'.
                     include( '/elements/checkboxes-table-name.html',
                                'source_obj'   => $access_group,
                                'link_table'   => 'access_right',
                                'link_static'  => { 'righttype' =>
                                                      'FS::access_group',
                                                  },
                                'num_col'      => 'rightobjnum',
                                'name_col'     => 'rightname',
                                'names_list'   => [ FS::AccessRight->rights() ],
                            ).
                     '</TR></TD></TABLE>'

                     ;
                   },
           )
%>